home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 2023 
 Oli to Wilfred van Velzen 
 Linux / 5D 
 23 Feb 23 11:33:38 
 
MSGID: 2:280/464.47 63f740fa
REPLY: 2:280/464 63f728d7
PID: JamNNTPd/Linux 1
CHRS: UTF-8 2
TZUTC: 0100
TID: CrashMail II/Linux 1.7
Wilfred wrote (2023-02-23):

 WvV> It seems to have to do with how the getch() function is implemented in
 WvV> the MingW compiler. The version in the old Borland Compiler seems to work
 WvV> in reactos, or so some tests I did seems to indicate.

 WvV> A few years back I made a little test program that showed this when
 WvV> compiled with different compilers:
 WvV> http://fmail.vlzn.nl/files/getchtest.zip

I've compiled it with conio.h from https://github.com/casualsnek/linuxconio on
Linux and this is what I get when pressing

UP
DOWN
F1
F2
INS
DEL

$ ./getchtest-linuxconio
   27 - 0000001B - '
   91 - 0000005B - '['
   65 - 00000041 - 'A'
   27 - 0000001B - '
   91 - 0000005B - '['
   66 - 00000042 - 'B'
   27 - 0000001B - '
   79 - 0000004F - 'O'
   80 - 00000050 - 'P'
   27 - 0000001B - '
   79 - 0000004F - 'O'
   81 - 00000051 - 'Q'
   27 - 0000001B - '
   91 - 0000005B - '['
   50 - 00000032 - '2'
  126 - 0000007E - '~'
   27 - 0000001B - '
   91 - 0000005B - '['
   51 - 00000033 - '3'
  126 - 0000007E - '~'

and with wine:

$ wine getchtest-borland.exe
    0 - 00000000 - ''
   72 - 00000048 - 'H'
    0 - 00000000 - ''
   80 - 00000050 - 'P'
    0 - 00000000 - ''
   59 - 0000003B - ';'
    0 - 00000000 - ''
   60 - 0000003C - '<'
    0 - 00000000 - ''
   82 - 00000052 - 'R'
    0 - 00000000 - ''
   83 - 00000053 - 'S'

$ wine getchtest-mingw32.exe
  224 - 000000E0 - 'à'
   72 - 00000048 - 'H'
  224 - 000000E0 - 'à'
   80 - 00000050 - 'P'
[F1 nothing]
[F2 nothing]
  224 - 000000E0 - 'à'
   82 - 00000052 - 'R'
  224 - 000000E0 - 'à'
   83 - 00000053 - 'S'

I don't have 64-bit wine.

---
 * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength.
(2:280/464.47)
SEEN-BY: 1/19 123 15/0 16/0 19/37 90/1 103/705 105/81 106/201 123/130
SEEN-BY: 123/131 124/5016 129/305 142/104 153/757 7715 154/10 203/0
SEEN-BY: 218/700 221/0 226/30 227/114 229/111 112 113 206 307 317
SEEN-BY: 229/424 426 428 470 550 664 700 240/1120 5411 5832 5853 266/512
SEEN-BY: 280/464 5003 5555 282/1038 292/854 8125 301/1 310/31 317/3
SEEN-BY: 320/119 219 319 2119 322/0 757 326/101 341/66 234 342/200
SEEN-BY: 396/45 423/120 460/58 633/280 712/848 770/1 2454/119
PATH: 280/464 240/5832 320/219 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca