Subj : Re: Linux / 5D
To : Oli
From : Wilfred van Velzen
Date : Thu Feb 23 2023 02:18 pm
Hi Oli,
On 2023-02-23 13:13:59, you wrote to me:
Ol>>> I've compiled it with conio.h from
Ol>>>
https://github.com/casualsnek/linuxconio
Ol>>> on Linux and this is what I get when pressing
Ol>>> UP
Ol>>> DOWN
Ol>>> F1
Ol>>> F2
Ol>>> INS
Ol>>> DEL
Ol>>> $ ./getchtest-linuxconio
Ol>>> 27 - 0000001B - '
Ol>>> 91 - 0000005B - '['
Ol>>> 65 - 00000041 - 'A'
Ol>>> 27 - 0000001B - '
Ol>>> 91 - 0000005B - '['
Ol>>> 66 - 00000042 - 'B'
Ol>>> 27 - 0000001B - '
Ol>>> 79 - 0000004F - 'O'
Ol>>> 80 - 00000050 - 'P'
Ol>>> 27 - 0000001B - '
Ol>>> 79 - 0000004F - 'O'
Ol>>> 81 - 00000051 - 'Q'
Ol>>> 27 - 0000001B - '
Ol>>> 91 - 0000005B - '['
Ol>>> 50 - 00000032 - '2'
Ol>>> 126 - 0000007E - '~'
Ol>>> 27 - 0000001B - '
Ol>>> 91 - 0000005B - '['
Ol>>> 51 - 00000033 - '3'
Ol>>> 126 - 0000007E - '~'
WvV>> That's a strange result, but something for later, when I'm converting
WvV>> fconfig to linux. ;-)
Ol> ANSI escape codes?
I could get the same above sequences with a windows program with some wincon.h functions and this mode:
https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences
But this works in Windows 10, not in Windows XP... :-(
Bye, Wilfred.
--- FMail-lnx64 2.2.0.0
* Origin: FMail development HQ (2:280/464)