Cygwin: pty: Fix console mode of non-cygwin apps in background.
- If the non-cygwin app is started in the background in pseudo console, the console mode is broken for the app. This patch fixes the issue.
This commit is contained in:
parent
e91ea41ef1
commit
d593c3e17e
|
@ -3384,7 +3384,7 @@ skip_create:
|
|||
if (get_ttyp ()->previous_output_code_page)
|
||||
SetConsoleOutputCP (get_ttyp ()->previous_output_code_page);
|
||||
|
||||
do
|
||||
if (get_ttyp ()->getpgid () == myself->pgid)
|
||||
{
|
||||
termios &t = get_ttyp ()->ti;
|
||||
DWORD mode;
|
||||
|
@ -3409,7 +3409,6 @@ skip_create:
|
|||
mode |= DISABLE_NEWLINE_AUTO_RETURN;
|
||||
SetConsoleMode (hpConOut, mode);
|
||||
}
|
||||
while (false);
|
||||
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue