directvt / vtm

Text-based desktop environment
MIT License
1.63k stars 43 forks source link

Input is broken on x-platform connections #483

Closed o-sdn-o closed 11 months ago

o-sdn-o commented 12 months ago

Example: Pressed keys: ArrowUp, ArrowDn, Esc, F1, F2, x

sdn@MEGASUS D:\sources\test\key_press_test\x64\Debug>key_press_test 
GetNumberOfConsoleInputEvents: 6
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x41
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x41
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x5b
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x5b
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
GetNumberOfConsoleInputEvents: 6
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x42
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x42
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x5b
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x5b
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
GetNumberOfConsoleInputEvents: 1
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
GetNumberOfConsoleInputEvents: 6
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x50
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x50
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x4f
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x4f
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
GetNumberOfConsoleInputEvents: 6
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x51
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x51
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x4f
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x4f
type: 1, down: 0, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x1b
GetNumberOfConsoleInputEvents: 1
type: 1, down: 1, ctrl: 0, count: 1, vcod: 0, scod: 0, wchr: 0x78

sdn@MEGASUS D:\sources\test\key_press_test\x64\Debug>