diff options
| author | Karoly Lorentey | 2006-01-03 02:15:28 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-01-03 02:15:28 +0000 |
| commit | b58cb6144c59dfa3a44b9b383cf354bc2c9bebdf (patch) | |
| tree | 87bc562249d9e597e12406e1d9b1c7dfb0f937e5 /src/term.c | |
| parent | b3e6f69c10973ff7b040ced07a3a084960619681 (diff) | |
| parent | 55262b16df717fe533ea4ad23dac3f02398c9055 (diff) | |
| download | emacs-b58cb6144c59dfa3a44b9b383cf354bc2c9bebdf.tar.gz emacs-b58cb6144c59dfa3a44b9b383cf354bc2c9bebdf.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 682)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-682
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-490
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c index 49356348545..899739de6ae 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -109,6 +109,10 @@ static void delete_tty P_ ((struct terminal *)); | |||
| 109 | 109 | ||
| 110 | #define OUTPUT1_IF(tty, a) do { if (a) emacs_tputs ((tty), a, 1, cmputc); } while (0) | 110 | #define OUTPUT1_IF(tty, a) do { if (a) emacs_tputs ((tty), a, 1, cmputc); } while (0) |
| 111 | 111 | ||
| 112 | /* If true, use "vs", otherwise use "ve" to make the cursor visible. */ | ||
| 113 | |||
| 114 | static int visible_cursor; | ||
| 115 | |||
| 112 | /* Display space properties */ | 116 | /* Display space properties */ |
| 113 | 117 | ||
| 114 | extern Lisp_Object Qspace, QCalign_to, QCwidth; | 118 | extern Lisp_Object Qspace, QCalign_to, QCwidth; |
| @@ -217,7 +221,7 @@ tty_set_terminal_modes (struct terminal *terminal) | |||
| 217 | } | 221 | } |
| 218 | 222 | ||
| 219 | OUTPUT_IF (tty, tty->TS_termcap_modes); | 223 | OUTPUT_IF (tty, tty->TS_termcap_modes); |
| 220 | OUTPUT_IF (tty, tty->TS_cursor_visible); | 224 | OUTPUT_IF (tty, visible_cursor ? tty->TS_cursor_visible : tty->TS_cursor_normal); |
| 221 | OUTPUT_IF (tty, tty->TS_keypad_mode); | 225 | OUTPUT_IF (tty, tty->TS_keypad_mode); |
| 222 | losecursor (tty); | 226 | losecursor (tty); |
| 223 | fflush (tty->output); | 227 | fflush (tty->output); |
| @@ -359,7 +363,8 @@ tty_show_cursor (struct tty_display_info *tty) | |||
| 359 | { | 363 | { |
| 360 | tty->cursor_hidden = 0; | 364 | tty->cursor_hidden = 0; |
| 361 | OUTPUT_IF (tty, tty->TS_cursor_normal); | 365 | OUTPUT_IF (tty, tty->TS_cursor_normal); |
| 362 | OUTPUT_IF (tty, tty->TS_cursor_visible); | 366 | if (visible_cursor) |
| 367 | OUTPUT_IF (tty, tty->TS_cursor_visible); | ||
| 363 | } | 368 | } |
| 364 | } | 369 | } |
| 365 | 370 | ||
| @@ -3031,6 +3036,13 @@ The functions are run with one argument, the name of the tty that was revived. | |||
| 3031 | See `resume-tty'. */); | 3036 | See `resume-tty'. */); |
| 3032 | Vresume_tty_functions = Qnil; | 3037 | Vresume_tty_functions = Qnil; |
| 3033 | 3038 | ||
| 3039 | DEFVAR_BOOL ("visible-cursor", &visible_cursor, | ||
| 3040 | doc: /* Non-nil means to make the cursor very visible. | ||
| 3041 | This only has an effect when running in a text terminal. | ||
| 3042 | What means \"very visible\" is up to your terminal. It may make the cursor | ||
| 3043 | bigger, or it may make it blink, or it may do nothing at all. */); | ||
| 3044 | visible_cursor = 1; | ||
| 3045 | |||
| 3034 | defsubr (&Stty_display_color_p); | 3046 | defsubr (&Stty_display_color_p); |
| 3035 | defsubr (&Stty_display_color_cells); | 3047 | defsubr (&Stty_display_color_cells); |
| 3036 | defsubr (&Stty_no_underline); | 3048 | defsubr (&Stty_no_underline); |