1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00
cdt/plugins/org.eclipse.tm.terminal.control
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
..
.settings Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
css Bugzilla 467985: [CSS] [Dark] Regression: Terminal doesn't invert colors 2015-05-22 12:29:30 +02:00
icons Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
META-INF Cleanup: Fix various API Markup Issues 2015-09-10 14:52:06 +02:00
schema Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
src/org/eclipse/tm Reply to a DSR(5) request for ready status. 2015-11-30 20:31:00 -06:00
.classpath Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
.cvsignore Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
.gitignore Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
.options fix tracing options 2015-05-08 17:21:40 +02:00
.project Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
about.html Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
about.ini Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
about.properties Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
build.properties Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
HelpContexts.xml Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
plugin.properties Bugzilla 466892 - Releng: Slight inconsistency in user-visible plug-in 2015-05-10 16:44:50 +02:00
plugin.xml Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
pom.xml Fix pom.xml version 2015-08-05 17:06:16 +02:00
README.txt Terminal: Merge terminal connector plug-ins and rework terminal feature 2015-04-17 11:19:19 +02:00
tm32.png Releng: Fix icon transparency 2015-05-08 16:37:24 +02:00

Terminal README
===============

The Terminal is a UI-less model of a grid of characters,
plus an SWT widget that's updated asynchronously for 
maximum performance. The widget can be hooked up to various
ITerminalConnectors providing an InputStream, OutputStream,
and a method for setting the Terminal Size.

The widget processes ANSI control characters, including NUL,
backspace, carriage return, linefeed, and a subset of ANSI
escape sequences sufficient to allow use of screen-oriented
applications, such as vi, Emacs, and any GNU readline-enabled
application (Bash, bc, ncftp, etc.).

This is not yet a fully compliant vt100 / vt102 terminal 
emulator!