comparison etc/PROBLEMS @ 41207:47026545f14a

A work-around for blinking block cursor on a GNU/Linux console.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 17 Nov 2001 17:25:41 +0000
parents 24f19e0a685d
children 78069920ddec
comparison
equal deleted inserted replaced
41206:e2456d48bc33 41207:47026545f14a
247 Some people have long ago set their `~/.emacs' files to turn on 247 Some people have long ago set their `~/.emacs' files to turn on
248 Font-lock on X only, so they won't see colors on a tty. The 248 Font-lock on X only, so they won't see colors on a tty. The
249 recommended way of turning on Font-lock is by typing "M-x 249 recommended way of turning on Font-lock is by typing "M-x
250 global-font-lock-mode RET" or by customizing the variable 250 global-font-lock-mode RET" or by customizing the variable
251 `global-font-lock-mode'. 251 `global-font-lock-mode'.
252
253 * Emacs on a tty switches the cursor to large blinking block.
254
255 This was reported to happen on some GNU/Linux systems which use
256 ncurses version 5.0, but could be relevant for other versions as well.
257 These versions of ncurses come with a `linux' terminfo entry, where
258 the "cvvis" capability (termcap "vs") is defined as "\E[?25h\E[?8c"
259 (show cursor, change size). This escape sequence switches on a
260 blinking hardware text-mode cursor whose size is a full character
261 cell. This blinking cannot be stopped, since a hardware cursor
262 always blinks.
263
264 A work-around is to redefine the "cvvis" capability so that it
265 enables a *software* cursor. The software cursor works by inverting
266 the colors of the character at point, so what you see is a block
267 cursor that doesn't blink. For this to work, you need to redefine
268 the "cnorm" capability as well, so that it operates on the software
269 cursor instead of the hardware cursor.
270
271 To this end, run "infocmp linux > linux-term", edit the file
272 `linux-term' to make both the "cnorm" and "cvvis" capabilities send
273 the sequence "\E[?25h\E[?17;0;64c", and then run "tic linux-term" to
274 produce a modified terminfo entry.
252 275
253 * Problems in Emacs built with LessTif. 276 * Problems in Emacs built with LessTif.
254 277
255 The problems seem to depend on the version of LessTif and the Motif 278 The problems seem to depend on the version of LessTif and the Motif
256 emulation for which it is set up. 279 emulation for which it is set up.