]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: pty: Clean up fhandler_pty_master::pty_master_fwd_thread().
authorTakashi Yano via Cygwin-patches <cygwin-patches@cygwin.com>
Sun, 31 May 2020 05:53:19 +0000 (14:53 +0900)
committerCorinna Vinschen <corinna@vinschen.de>
Sun, 31 May 2020 08:33:55 +0000 (10:33 +0200)
- Remove the code which is not necessary anymore.

winsup/cygwin/fhandler_tty.cc

index d017cde38ec804d50d3cb2d85bf2cd3705c32160..c3d49968d88824344dd5a0722db7b58b8e9d5e0d 100644 (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);
This page took 0.037258 seconds and 5 git commands to generate.