Cygwin: pty: Clean up fhandler_pty_master::pty_master_fwd_thread().

- Remove the code which is not necessary anymore.
This commit is contained in:
Takashi Yano via Cygwin-patches 2020-05-31 14:53:19 +09:00 committed by Corinna Vinschen
parent 4527541ec6
commit ac1f63ef28
1 changed files with 0 additions and 18 deletions

View File

@ -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);