Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux Lubuntu INKEY$ issue
#7
Thanks for replies
@All
 I got the issue on the combo keys or using Shift to change from Uppercase to lowercase and vice versa!

@SMcNeill

Amazing Steve!
You fire the centre of issue.

Yeah I have made a mistake!
I missed your suggestion about ASC because the row of code starts with IF LEN (a$)>1... BuuuuuuuuuT
in the ELSE case it goes also a$="" when a keystroke with Alt/Ctrl or Shift gives the event with no value returned by INKEY$!

so the solution is another IF in the ELSE case

Code: (Select All)

Screen 0
_ControlChr Off
Do
    Print " Press key for seeing the code turned back by INKEY$, Enter key will quit"
    Sleep
    a$ = InKey$
    Print a$;
    If Len(a$) > 1 Then
        Print " = CHR$(0) + CHR$(" + Str$(Asc(a$, 2)) + ")"
    Else
        If Len(a$) > 0 Then Print " = " + Str$(Asc(a$))
    End If
Loop Until a$ = Chr$(13)

Steve your code is clear and selfexplaining!
Reply


Messages In This Thread
Linux Lubuntu INKEY$ issue - by TempodiBasic - 09-08-2025, 09:50 PM
RE: Linux Lubuntu INKEY$ issue - by ahenry3068 - 09-08-2025, 09:58 PM
RE: Linux Lubuntu INKEY$ issue - by SMcNeill - 09-08-2025, 11:24 PM
RE: Linux Lubuntu INKEY$ issue - by Rudy M - 09-09-2025, 07:40 AM
RE: Linux Lubuntu INKEY$ issue - by Rudy M - 09-09-2025, 07:51 AM
RE: Linux Lubuntu INKEY$ issue - by SMcNeill - 09-09-2025, 09:52 AM
RE: Linux Lubuntu INKEY$ issue - by TempodiBasic - 09-09-2025, 10:28 AM
RE: Linux Lubuntu INKEY$ issue - by hsiangch_ong - 09-09-2025, 02:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Don't let INKEY$ byte you in the ASCII Pete 1 173 02-01-2026, 10:44 PM
Last Post: PhilOfPerth
  Make windows .exe using Linux version? Circlotron 7 509 01-15-2026, 09:42 PM
Last Post: ahenry3068
  Linux - file dialogue boxes... atl068 7 925 08-05-2025, 07:21 PM
Last Post: hsiangch_ong
  System Linux Chris 9 1,215 07-12-2025, 08:51 PM
Last Post: Chris
  Linux: terminal output Parkland 4 846 06-08-2025, 04:00 PM
Last Post: DSMan195276

Forum Jump:


Users browsing this thread: 1 Guest(s)