unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to get normal cursor in text mode?
@ 2005-10-26 12:46 Waldek Hebisch
  0 siblings, 0 replies; 2+ messages in thread
From: Waldek Hebisch @ 2005-10-26 12:46 UTC (permalink / raw)


>From some time emacs turn on ugly big block cursor in text mode on
Linux console. This cursor is very distracting, making emacs almost
unusable. Facts:
- most other editors just use normal cursor
- I _can_ stop emacs using block cursor by telling emacs that it
  is running on vt100
- the Cursor customization group seem to contain options about X

Is there a way to tell emacs to use normal cursor? IFAICS emacs
is actively working to turn block cursor on, so it must contain
somewhere special code to do this.

BTW. The terminal trick works, but I am searching a way which does
not require messing in the system.

-- 
                              Waldek Hebisch
hebisch@math.uni.wroc.pl 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get normal cursor in text mode?
       [not found] <mailman.12768.1130330947.20277.help-gnu-emacs@gnu.org>
@ 2005-11-01  4:22 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2005-11-01  4:22 UTC (permalink / raw)


>> From some time emacs turn on ugly big block cursor in text mode on
> Linux console. This cursor is very distracting, making emacs almost
> unusable. Facts:
> - most other editors just use normal cursor
> - I _can_ stop emacs using block cursor by telling emacs that it
>   is running on vt100
> - the Cursor customization group seem to contain options about X

> Is there a way to tell emacs to use normal cursor? IFAICS emacs
> is actively working to turn block cursor on, so it must contain
> somewhere special code to do this.

Indeed.  Try the patch below.  If it works for you, please report your
problem via M-x report-emacs-bug.


        Stefan


--- orig/src/term.c
+++ mod/src/term.c
@@ -275,7 +275,7 @@
 char *TS_termcap_modes;		/* "ti" */
 char *TS_visible_bell;		/* "vb" */
 char *TS_cursor_normal;		/* "ve" */
-char *TS_cursor_visible;	/* "vs" */
+char *TS_cursor_very_visible;	/* "vs" */
 char *TS_cursor_invisible;	/* "vi" */
 char *TS_set_window;		/* "wi" (4 params, start and end of window,
 				   each as vpos and hpos) */
@@ -460,7 +460,7 @@
 	    putchar ('\n');
 	}
 
-      OUTPUT_IF (TS_cursor_visible);
+      OUTPUT_IF (TS_cursor_normal); /* TS_cursor_very_visible */
       OUTPUT_IF (TS_keypad_mode);
       losecursor ();
     }
@@ -615,7 +615,7 @@
     {
       tty_cursor_hidden = 0;
       OUTPUT_IF (TS_cursor_normal);
-      OUTPUT_IF (TS_cursor_visible);
+      /* OUTPUT_IF (TS_cursor_very_visible); */
     }
 }
 
@@ -2416,7 +2416,7 @@
   Up = tgetstr ("up", address);
   TS_visible_bell = tgetstr ("vb", address);
   TS_cursor_normal = tgetstr ("ve", address);
-  TS_cursor_visible = tgetstr ("vs", address);
+  TS_cursor_very_visible = tgetstr ("vs", address);
   TS_cursor_invisible = tgetstr ("vi", address);
   TS_set_window = tgetstr ("wi", address);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-01  4:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.12768.1130330947.20277.help-gnu-emacs@gnu.org>
2005-11-01  4:22 ` How to get normal cursor in text mode? Stefan Monnier
2005-10-26 12:46 Waldek Hebisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).