From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: How to get normal cursor in text mode?
Date: Mon, 31 Oct 2005 23:22:40 -0500 [thread overview]
Message-ID: <87sluh2e31.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.12768.1130330947.20277.help-gnu-emacs@gnu.org
>> 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);
next parent reply other threads:[~2005-11-01 4:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12768.1130330947.20277.help-gnu-emacs@gnu.org>
2005-11-01 4:22 ` Stefan Monnier [this message]
2005-10-26 12:46 How to get normal cursor in text mode? Waldek Hebisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sluh2e31.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).