Console modes: cursor style
Thomas Wolff
towo@towo.net
Sat Jan 12 16:57:00 GMT 2013
Am 11.01.2013 14:34, schrieb Corinna Vinschen:
> On Jan 11 13:52, Thomas Wolff wrote:
>> On 11.01.2013 12:05, Corinna Vinschen wrote:
>>> On Jan 11 09:33, Thomas Wolff wrote:
>>>> The attached patch adds two escape control sequences to the Cygwin Console:
>>>>
>>>> * Show/Hide Cursor (DECTCEM)
>>>> * Set cursor style (DECSCUSR): block vs. underline cursor, or
>>>> arbitrary size (as an extension, using values > 4)
>>>>
>>>> Thomas
>>>>
>>>> 2013-01-13 Thomas Wolff <...>
>>>>
>>>> * fhandler.h (class dev_console): Flag for expanded control sequence.
>>>> * fhandler_console.cc (char_command): Supporting cursor style modes.
>>> Patch applied. Can you provide a patch for the docs, too, please?
>> Sure, but: where are the docs to be patched? Any package to be installed?
> Cygwin CVS, file winsup/doc/new-features.sgml
Patch attached.
-------------- next part --------------
--- sav/new-features.sgml 2012-12-15 18:42:18.000000000 +0100
+++ ./new-features.sgml 2013-01-11 14:53:22.063814100 +0100
@@ -4,6 +4,25 @@
<itemizedlist mark="bullet">
+<listitem><para>Added Windows console cursor appearance support.</para>
+
+ <itemizedlist mark="bullet">
+
+ <listitem><para>
+ Show/Hide Cursor mode (DECTCEM): "ESC[?25h" / "ESC[?25l"
+ </para></listitem>
+
+ <listitem><para>
+ Set cursor style (DECSCUSR): "ESC[n q" (note the space before the q);
+ where n is 0, 1, 2 for block cursor, 3, 4 for underline cursor (all
+ disregarding blinking mode), or > 4 to set the cursor height to a
+ percentage of the cell height.
+ </para></listitem>
+
+ </itemizedlist>
+
+</listitem>
+
<listitem><para>
For performance reasons, Cygwin does not try to create sparse files
automatically anymore, unless you use the new "sparse" mount option.
More information about the Cygwin-patches
mailing list