1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00
cdt/plugins
Ryan Prichard 44f0083f72 Reply to a DSR(5) request for ready status.
When TM Terminal sees this:

   ESC [ 5 n

It replies indicating that the terminal is OK:

   ESC [ 0 n

This escape sequence is documented here:

   8.3.35 DSR - DEVICE STATUS REPORT.  Page 40.
   http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf

Motivation: I'd like to switch winpty from using DSR(6) to DSR(5) as its
ESC flushing command.  When winpty sees a bare ESC, it can either
synthesize a VK_ESCAPE keypress or wait to see if the ESC was part of some
other escape sequence.  It tries to deal with this by generating a DSR(6),
which should flush out the remaining bytes of the sequence, if there are
any.  DSR(6) is suboptimal, though, because the reply collides with the
sequence some terminals use for F3 with a modifier:

    ESC [ nn ; nn R

DSR(5) generates a DSR(0) reply, which does not have the same problem.

DSR(5) is supported by all the terminal emulators I tested, including
xterm, rxvt, rxvt-unicode, gnome-terminal, konsole, putty, mintty,
OS X's Terminal.app, and IntelliJ/jediterm.

Signed-off-by: Ryan Prichard <ryan.prichard@gmail.com>
2015-11-30 20:31:00 -06:00
..
org.eclipse.tm.terminal.connector.local Releng: Add API Tooling to Terminal 2015-09-04 16:18:30 +02:00
org.eclipse.tm.terminal.connector.process Cleanup: Fix various API Markup Issues 2015-09-10 14:52:06 +02:00
org.eclipse.tm.terminal.connector.remote Bug 470525 - Handle remote connection parser initialization failure 2015-06-24 11:35:04 -04:00
org.eclipse.tm.terminal.connector.serial Releng: Add API Tooling to Terminal 2015-09-04 16:18:30 +02:00
org.eclipse.tm.terminal.connector.ssh Releng: Add API Tooling to Terminal 2015-09-04 16:18:30 +02:00
org.eclipse.tm.terminal.connector.telnet Bug 477702 - Telnet line ending needs to be CRLF 2015-10-01 12:35:46 +02:00
org.eclipse.tm.terminal.control Reply to a DSR(5) request for ready status. 2015-11-30 20:31:00 -06:00
org.eclipse.tm.terminal.test Cleanup: Fix various API Markup Issues 2015-09-10 14:52:06 +02:00
org.eclipse.tm.terminal.view.core Fix Bug 476888 - msg on each Terminal open: "bash: mc: line 1: syntax 2015-09-09 14:39:38 +02:00
org.eclipse.tm.terminal.view.ui Cleanup: Fix Terminal API Markup part 2 2015-09-16 16:24:27 -04:00
org.eclipse.tm.terminal.view.ui.rse Releng: Add API Tooling to Terminal 2015-09-04 16:18:30 +02:00