Subj : Re: Linux / 5D
To : Oli
From : Wilfred van Velzen
Date : Thu Feb 23 2023 12:03 pm
Hi Oli,
On 2023-02-23 11:33:38, 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 - '~'
That's a strange result, but something for later, when I'm converting fconfig to linux. ;-)
Ol> and with wine:
Ol> $ wine getchtest-borland.exe
Ol> 0 - 00000000 - ''
Ol> 72 - 00000048 - 'H'
Ol> 0 - 00000000 - ''
Ol> 80 - 00000050 - 'P'
Ol> 0 - 00000000 - ''
Ol> 59 - 0000003B - ';'
Ol> 0 - 00000000 - ''
Ol> 60 - 0000003C - '<'
Ol> 0 - 00000000 - ''
Ol> 82 - 00000052 - 'R'
Ol> 0 - 00000000 - ''
Ol> 83 - 00000053 - 'S'
Same on Windows 10 x64
Ol> $ wine getchtest-mingw32.exe
Ol> 224 - 000000E0 - 'à'
Ol> 72 - 00000048 - 'H'
Ol> 224 - 000000E0 - 'à'
Ol> 80 - 00000050 - 'P'
Ol> [F1 nothing]
Ol> [F2 nothing]
Ol> 224 - 000000E0 - 'à'
Ol> 82 - 00000052 - 'R'
Ol> 224 - 000000E0 - 'à'
Ol> 83 - 00000053 - 'S'
The "nothing" is the problem...
On Windows 10 x64, all mingw versions produce:
224 - 000000E0 - 'α'
72 - 00000048 - 'H'
224 - 000000E0 - 'α'
80 - 00000050 - 'P'
0 - 00000000 - ' '
59 - 0000003B - ';'
0 - 00000000 - ' '
60 - 0000003C - '<'
224 - 000000E0 - 'α'
82 - 00000052 - 'R'
224 - 000000E0 - 'α'
83 - 00000053 - 'S'
(The 224 instead of 0 is no problem and already dealt with in the fconfig source...)
Bye, Wilfred.
--- FMail-lnx64 2.2.0.0
* Origin: FMail development HQ (2:280/464)