This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
[PATCH v5 0/1] Pseudo console support in PTY (v5)
- From: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- To: cygwin-developers at cygwin dot com
- Cc: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- Date: Mon, 15 Apr 2019 00:23:15 +0900
- Subject: [PATCH v5 0/1] Pseudo console support in PTY (v5)
- Dkim-filter: OpenDKIM Filter v2.10.3 conuserg-05.nifty.com x3EFNMpB024514
- References: <20190412102047.669-1-takashi.yano@nifty.ne.jp>
Major chages from v4:
(1) Try to reopen pty slave on write error in
push_to_pcon_screenbuffer().
(2) Avoid double close for pty master.
(3) Make system_printf() work again.
"mintty --help" in mintty window works again by (1).
In v3 and v4, system_printf() does not work. (3) fixes this issue.
Regarding (3), system_printf() write message to STD_ERROR_HANDLE,
which is associated with output_handle. However, the message written
to output_handle is shown only when the native console app is active.
Therefore, in v5, the messages is written to output_handle_cyg as well.
D=http://tyan0.dip.jp/cygwin
${D}/x86_64/test/cygwin1-20190414.dll.xz
${D}/x86_64/test/cygwin-console-helper.exe.xz
${D}/x86/test/cygwin1-20190414.dll.xz
${D}/x86/test/cygwin-console-helper.exe.xz
Takashi Yano (1):
Cygwin: pty: add pseudo console support.
winsup/cygwin/dtable.cc | 57 +++
winsup/cygwin/fhandler.h | 42 +-
winsup/cygwin/fhandler_console.cc | 32 ++
winsup/cygwin/fhandler_tty.cc | 684 ++++++++++++++++++++++++--
winsup/cygwin/fork.cc | 24 +
winsup/cygwin/select.cc | 22 +-
winsup/cygwin/spawn.cc | 55 +++
winsup/cygwin/strace.cc | 24 +
winsup/cygwin/tty.cc | 7 +
winsup/cygwin/tty.h | 23 +-
winsup/utils/cygwin-console-helper.cc | 14 +-
11 files changed, 940 insertions(+), 44 deletions(-)
--
2.17.0