Re: Console modes: cursor style

2013-01-12 Thread Thomas Wolff

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.
--- sav/new-features.sgml   2012-12-15 18:42:18.0 +0100
+++ ./new-features.sgml 2013-01-11 14:53:22.063814100 +0100
@@ -4,6 +4,25 @@
 
 
 
+Added Windows console cursor appearance support.
+
+  
+
+  
+  Show/Hide Cursor mode (DECTCEM): "ESC[?25h" / "ESC[?25l"
+  
+
+  
+  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.
+  
+
+  
+
+
+
 
 For performance reasons, Cygwin does not try to create sparse files
 automatically anymore, unless you use the new "sparse" mount option.


Re: Console modes: cursor style

2013-01-12 Thread Corinna Vinschen
On Jan 12 17:56, Thomas Wolff wrote:
> 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.

Applied.


Thanks,
Corinna


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat