summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Yano via Cygwin-patches <cygwin-patches@cygwin.com>2020-05-31 14:53:19 +0900
committerCorinna Vinschen <corinna@vinschen.de>2020-05-31 10:33:55 +0200
commitac1f63ef2812093ce0e053dd505b44c55c3d47d6 (patch)
treea67b8175b97898c197a0d41930f75ad0c178e95b
parent4527541ec66af8d82bb9dba5d25afdf489d71271 (diff)
downloadcygnal-ac1f63ef2812093ce0e053dd505b44c55c3d47d6.tar.gz
cygnal-ac1f63ef2812093ce0e053dd505b44c55c3d47d6.tar.bz2
cygnal-ac1f63ef2812093ce0e053dd505b44c55c3d47d6.zip
Cygwin: pty: Clean up fhandler_pty_master::pty_master_fwd_thread().
- Remove the code which is not necessary anymore.
-rw-r--r--winsup/cygwin/fhandler_tty.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index d017cde38..c3d49968d 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -3324,24 +3324,6 @@ fhandler_pty_master::pty_master_fwd_thread ()
continue;
}
- /* Remove ESC sequence which returns results to console
- input buffer. Without this, cursor position report
- is put into the input buffer as a garbage. */
- /* Remove ESC sequence to report cursor position. */
- char *p0;
- while ((p0 = (char *) memmem (outbuf, rlen, "\033[6n", 4)))
- {
- memmove (p0, p0+4, rlen - (p0+4 - outbuf));
- rlen -= 4;
- }
- /* Remove ESC sequence to report terminal identity. */
- while ((p0 = (char *) memmem (outbuf, rlen, "\033[0c", 4)))
- {
- memmove (p0, p0+4, rlen - (p0+4 - outbuf));
- rlen -= 4;
- }
- wlen = rlen;
-
size_t nlen;
char *buf = convert_mb_str
(get_ttyp ()->term_code_page, &nlen, CP_UTF8, ptr, wlen);