Cygwin: console: support 24 bit color
- Add 24 bit color support using xterm compatibility mode in Windows 10 1703 or later. - Add fake 24 bit color support for legacy console, which uses the nearest color from 16 system colors.
This commit is contained in:
committed by
Corinna Vinschen
parent
7b8049f7a3
commit
bd627864ab
@@ -1053,6 +1053,14 @@ peek_console (select_record *me, bool)
|
||||
else if (irec.Event.KeyEvent.uChar.UnicodeChar
|
||||
|| fhandler_console::get_nonascii_key (irec, tmpbuf))
|
||||
return me->read_ready = true;
|
||||
/* Allow Ctrl-Space for ^@ */
|
||||
else if ( (irec.Event.KeyEvent.wVirtualKeyCode == VK_SPACE
|
||||
|| irec.Event.KeyEvent.wVirtualKeyCode == '2')
|
||||
&& (irec.Event.KeyEvent.dwControlKeyState &
|
||||
(LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED))
|
||||
&& !(irec.Event.KeyEvent.dwControlKeyState
|
||||
& (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) )
|
||||
return me->read_ready = true;
|
||||
}
|
||||
/* Ignore key up events, except for Alt+Numpad events. */
|
||||
else if (is_alt_numpad_event (&irec))
|
||||
|
Reference in New Issue
Block a user