diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2019-08-27 21:04:02 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-08-29 14:47:40 +0300 |
commit | 169d65a5774acc76ce3f3feeedcbae7405aa9b57 (patch) | |
tree | 234f422b3511f90285c412cb01e49fb5a02fb250 /winsup/cygwin/tty.cc | |
parent | 398476acd2dca8d68044e1b6e68eb41a16086f79 (diff) |
Cygwin: pty: add pseudo console support.
- Support pseudo console in PTY. Pseudo console is a new feature
in Windows 10 1809, which provides console APIs on virtual
terminal. With this patch, native console applications can work
in PTYs such as mintty, ssh, gnu screen or tmux.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index ad46cb312..9244267c0 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -234,7 +234,15 @@ tty::init () was_opened = false; master_pid = 0; is_console = false; + attach_pcon_in_fork = false; + hPseudoConsole = NULL; column = 0; + switch_to_pcon = false; + screen_alternated = false; + mask_switch_to_pcon = false; + pcon_pid = 0; + num_pcon_attached_slaves = 0; + TermCodePage = 20127; /* ASCII */ } HANDLE |