public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: pty: Clean up fhandler_pty_master::pty_master_fwd_thread(). Date: Sun, 31 May 2020 08:39:26 +0000 (GMT) [thread overview] Message-ID: <20200531083926.06015386EC42@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ac1f63ef2812093ce0e053dd505b44c55c3d47d6 commit ac1f63ef2812093ce0e053dd505b44c55c3d47d6 Author: Takashi Yano via Cygwin-patches <cygwin-patches@cygwin.com> Date: Sun May 31 14:53:19 2020 +0900 Cygwin: pty: Clean up fhandler_pty_master::pty_master_fwd_thread(). - Remove the code which is not necessary anymore. Diff: --- winsup/cygwin/fhandler_tty.cc | 18 ------------------ 1 file changed, 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);
reply other threads:[~2020-05-31 8:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200531083926.06015386EC42@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).