From 46b73ef192bc8e1ef3db88d1da99dfbe28bb371b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 27 Dec 2002 03:50:29 +0000 Subject: * fhandler.h (fhandler_termios::line_edit): Replace third argument with passed-in termios struct. * fhandler_console.cc (fhandler_console::read): Prior to loop, make a copy of current termios for passing to line_edit prior so that all characters are processed consistently. * fhandler_tty.cc (fhandler_pty_master::write): Ditto. (process_input): Make a copy of curent termios prior to read for use in subsequent line_edit. * fhandler_termios.cc (fhandler_termios::line_edit): Replace third parameter with passed-in termios struct and use it throughout rather than the data from the current fhandler_termios class. --- winsup/cygwin/fhandler_console.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_console.cc') diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 96ef4284f..41c1cca21 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -247,6 +247,7 @@ fhandler_console::read (void *pv, size_t& buflen) nwait = 2; } + termios ti = tc->ti; for (;;) { int bgres; @@ -461,7 +462,7 @@ fhandler_console::read (void *pv, size_t& buflen) if (toadd) { - line_edit_status res = line_edit (toadd, nread); + line_edit_status res = line_edit (toadd, nread, ti); if (res == line_edit_signalled) goto sig_exit; else if (res == line_edit_input_done) -- cgit v1.2.3