Cygwin: console: Disable xterm mode for non cygwin process only.
- Special function keys such as arrow keys or function keys do not
work in ConEmu with cygwin-connector after commit
6a06c6bc8f
. This patch fixes the
issue.
This commit is contained in:
committed by
Corinna Vinschen
parent
bb30582a99
commit
d7478090d6
@ -33,17 +33,6 @@ details. */
|
||||
#include "child_info.h"
|
||||
#include "cygwait.h"
|
||||
|
||||
/* Not yet defined in Mingw-w64 */
|
||||
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
|
||||
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
|
||||
#endif /* ENABLE_VIRTUAL_TERMINAL_PROCESSING */
|
||||
#ifndef DISABLE_NEWLINE_AUTO_RETURN
|
||||
#define DISABLE_NEWLINE_AUTO_RETURN 0x0008
|
||||
#endif /* DISABLE_NEWLINE_AUTO_RETURN */
|
||||
#ifndef ENABLE_VIRTUAL_TERMINAL_INPUT
|
||||
#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
|
||||
#endif /* ENABLE_VIRTUAL_TERMINAL_INPUT */
|
||||
|
||||
/* Don't make this bigger than NT_MAX_PATH as long as the temporary buffer
|
||||
is allocated using tmp_pathbuf!!! */
|
||||
#define CONVERT_LIMIT NT_MAX_PATH
|
||||
@ -2975,14 +2964,6 @@ fhandler_console::fixup_after_fork_exec (bool execing)
|
||||
{
|
||||
set_unit ();
|
||||
setup_io_mutex ();
|
||||
if (wincap.has_con_24bit_colors () && !con_is_legacy)
|
||||
{
|
||||
DWORD dwMode;
|
||||
/* Disable xterm compatible mode in input */
|
||||
GetConsoleMode (get_handle (), &dwMode);
|
||||
dwMode &= ~ENABLE_VIRTUAL_TERMINAL_INPUT;
|
||||
SetConsoleMode (get_handle (), dwMode);
|
||||
}
|
||||
}
|
||||
|
||||
// #define WINSTA_ACCESS (WINSTA_READATTRIBUTES | STANDARD_RIGHTS_READ | STANDARD_RIGHTS_WRITE | WINSTA_CREATEDESKTOP | WINSTA_EXITWINDOWS)
|
||||
|
Reference in New Issue
Block a user