muhhiminminmin / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

cygwin console raw scancode mode #364

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Support the cygwin terminal raw scanmode mode

 enable:   \033[?2000h
 disable:  \033[?2000l

produces the following for all keys derived directly from the key event 
structure KEY_EVENT_RECORD.

  "\033{%u;%u;%u;%u;%u;%uK", 
     bKeyDown, wRepeatCount, 
     wVirtKeyCode, wVirtScanCode, uChar.UnicodeChar, 
     dwCtrlState  

example:

  <ESC>{0;1;13;28;13;0K

references:

  http://cygwin.com/ml/cygwin-patches/
     2001-q1/msg00079/raw-win32-keyboard-mode.diff

Original issue reported on code.google.com by ada...@gmail.com on 6 Dec 2012 at 10:59

GoogleCodeExporter commented 8 years ago
What's the use case?

(The KEY_EVENT_RECORD structure is specific to console input events. Mintty 
would need to extract the necessary information from WM_KEYDOWN and WM_KEYUP 
messages.)

Original comment by andy.koppe on 3 Jan 2013 at 10:52

GoogleCodeExporter commented 8 years ago

Original comment by andy.koppe on 22 Feb 2013 at 8:18