4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-16 11:31:00 +08:00
Takashi Yano 8c1a778e7d TIOCPKT mode of PTY is broken if ONLCR bit is cleared.
* tty.h (class tty_min): Remove variable "write_error" to which any
	errors are not currently set at anywhere.
	(class tty): Add variable "column" for handling ONOCR.
	* tty.cc (tty::init): Add initialization code for variable "column".
	* fhandler.h (class fhandler_pty_master): Remove variable "need_nl"
	which is not necessary any more. "need_nl" was needed by OPOST process
	in fhandler_pty_master::process_slave_output().
	(class fhandler_pty_common): Add function process_opost_output() for
	handling post processing for OPOST in write process.
	* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Count
	TIOCPKT control byte into length to be read in TIOCPKT mode. Move
	post processing for OPOST to write process. Remove code related to
	variable "write_error". Return with EIO error if slave is already
	closed.
	(fhandler_pty_master::fhandler_pty_master): Remove initialization
	code for variable "need_nl".
	(fhandler_pty_common::process_opost_output): Add this function for
	handling of OPOST in write process. Add code to avoid blocking in
	non-blocking mode when output is suspended by ^S.
	(fhandler_pty_slave::write): Call fhandler_pty_common::
	process_opost_output() instead of WriteFile(). Remove code related to
	variable "write_error".
	(fhandler_pty_master::doecho): Call fhandler_pty_common::
	 process_opost_output() instead of WriteFile().
	* select.cc (peek_pipe): Remove code related to variable "need_nl".

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23 21:57:07 +02:00
..
2015-01-13 08:52:26 +00:00
2013-04-30 23:43:08 +00:00
2013-04-23 09:44:36 +00:00
2012-11-23 13:22:47 +00:00
2013-04-23 09:44:36 +00:00
2014-01-04 23:58:32 +00:00
2015-03-03 12:58:34 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2012-03-19 17:49:40 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2014-04-26 17:38:22 +00:00
2013-04-23 09:44:36 +00:00
2014-01-27 20:04:35 +00:00
2013-04-23 09:44:36 +00:00
2015-03-03 12:58:34 +00:00
2014-10-29 11:31:05 +00:00
2015-03-18 17:15:27 +01:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-08-19 16:21:29 +00:00
2015-02-24 20:52:57 +00:00
2014-08-14 17:36:24 +00:00
2012-03-19 17:49:40 +00:00
2013-04-23 09:44:36 +00:00
2015-03-13 10:38:49 +01:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2015-03-18 17:15:27 +01:00
2013-04-23 09:44:36 +00:00
2015-03-18 17:15:27 +01:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2015-02-24 20:52:57 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2014-12-01 14:02:55 +00:00
2013-04-23 09:44:36 +00:00
2013-04-23 09:44:36 +00:00
2013-05-13 19:25:35 +00:00