Skip to content

Commit

Permalink
Merge pull request #38 from dscho/work-around-overzealous-pcon-code
Browse files Browse the repository at this point in the history
Add a work-around for that overzealous pseudo console code
  • Loading branch information
dscho authored Jan 14, 2022
2 parents 6e0141c + 1d0701d commit d3172a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
msystem: MSYS
update: true
install: msys2-devel base-devel cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel
install: msys2-devel base-devel autotools cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel xmlto docbook-xsl

- name: Build
shell: msys2 {0}
Expand Down
5 changes: 5 additions & 0 deletions winsup/cygwin/fhandler_console.cc
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ fhandler_console::set_input_mode (tty::cons_mode m, const termios *t,
DWORD flags = 0, oflags;
WaitForSingleObject (p->input_mutex, INFINITE);
GetConsoleMode (p->input_handle, &oflags);
if (disable_pcon && m == tty::cygwin)
/* If we disabled pseudo console support explicitly, it would be wrong to
mess with the flags. In fact, we _still_ mess with the flags, but at
least with tty::restore we do little damage. */
m = tty::restore;
switch (m)
{
case tty::restore:
Expand Down

0 comments on commit d3172a7

Please sign in to comment.