linewrap
Version:
Word wrapping with HTML, ANSI color code, indentation and paragraphing support.
45 lines (44 loc) • 2.59 kB
Plain Text
<ul>
<li>The Linux console uses <code>OSC P n
rr gg bb</code> to change the
palette, which, if hard-coded
into an application, may hang
other terminals. However,
appending <code>ST</code> will be ignored
by Linux and form a proper,
ignorable sequence for other
terminals.</li>
<li>On the Linux console, certain
function keys generate
sequences of the form <code>CSI [ <i>
char</i></code>. The CSI sequence should
terminate on the [.</li>
<li>Old versions of <a href="/wiki/Terminator_(terminal_emulator)" title="Terminator (terminal emulator)">Terminator</a>
generates <code>SS3 1; <i>modifiers</i> <i>
char</i></code> when F1–F4 are pressed
with modifiers. The faulty
behavior was copied from <a href="/wiki/GNOME_Terminal" title="GNOME Terminal">GNOME
Terminal</a>.<sup class="Template-Fact" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="This claim needs references to reliable sources. (December 2010)">citation needed</span></a></i>]</sup></li>
<li>xterm replies <code>CSI <i>row</i> ; <i>
column</i> R</code> if asked for cursor
position and <code>CSI 1 ; <i>
modifiers</i> R</code> if the F3 key is
pressed with modifiers, which
collide in the case of <i>row</i> ==
1. This can be avoided by
using the <i>?</i> private modifier,
which will be reflected in the
response.<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="The text near this tag may need clarification or removal of jargon. (November 2010)">clarification needed</span></a></i>
]</sup></li>
<li>many terminals prepend <code>ESC</code> to
any character that is typed
with the alt key down. This
creates ambiguity for
uppercase letters and symbols <i>
@[\]^_</i>, which would form C1
codes.<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="The text near this tag may need clarification or removal of jargon. (November 2010)">clarification needed</span></a></i>]</sup></li>
<li><a href="/wiki/Konsole" title="Konsole">Konsole</a> generates <code>SS3 <i>
modifiers</i> <i>char</i></code> when F1–F4 are
pressed with modifiers.<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="The text near this tag may need clarification or removal of jargon. (November 2010)">
clarification needed</span></a></i>]</sup></li>
</ul>