Fix the age old problem of TTY cursor being reset on exit
authorSteve Youngs <steve@sxemacs.org>
Sun, 6 Jan 2013 02:21:45 +0000 (12:21 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sun, 6 Jan 2013 02:21:45 +0000 (12:21 +1000)
commit1b6e2638f91b3a7a1f30f2791b5434dff7931747
tree918015f14835350e67f745dd2bb6b79256813670
parentaa30c7afddd4939c202f2e46efe10b0b55509a8d
Fix the age old problem of TTY cursor being reset on exit

This changeset stops SXEmacs from resetting the text cursor to block on
exit on a Linux console.  It is actually still reset, but it is reset
correctly and now you'll end up with a "normal" cursor instead of a "very
visible" one.

One side-effect of this change is that SXEmacs on a console will now use a
block cursor, but that just adds consistency because that is how things
are in X11 and Xterm anyway.

* src/ui/TTY/console-tty.h (struct tty_console): Add
`cursor_invisible_' and `hard_cursor_' for invisible and hard to
see cursors.

* src/ui/TTY/redisplay-tty.c (init_tty_for_redisplay): Set
cursor_visible_ to "vs" and cursor_normal_ to "ve" like they
should be according to terminfo(5).
Also add cursor_invisible_ ("vi"), and hard_cursor_ ("HC").

Signed-off-by: Steve Youngs <steve@sxemacs.org>
src/ui/TTY/console-tty.h
src/ui/TTY/redisplay-tty.c