This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v5 0/1] Pseudo console support in PTY (v5)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]