Cygwin: pty: Introduce disable_pcon in environment CYGWIN.

- For programs which does not work properly with pseudo console,
  disable_pcon in environment CYGWIN is introduced. If disable_pcon
  is set, pseudo console support is disabled.
This commit is contained in:
Takashi Yano
2020-01-21 22:25:13 +09:00
committed by Corinna Vinschen
parent da4ee7d60b
commit cdf5db22f1
4 changed files with 10 additions and 0 deletions

View File

@@ -3145,6 +3145,8 @@ is_running_as_service (void)
bool
fhandler_pty_master::setup_pseudoconsole ()
{
if (disable_pcon)
return false;
/* If the legacy console mode is enabled, pseudo console seems
not to work as expected. To determine console mode, registry
key ForceV2 in HKEY_CURRENT_USER\Console is checked. */