Discussion:
Disabling blinking cursor
o***@yahoo.com
2005-10-20 08:22:06 UTC
Permalink
This is in emacs 21.3.1 on FC3. The cursor is blinking. I tried to
disable it
in .emacs with the following but neither one had effect. Any
suggestions?

(blink-cursor-mode 0)
(setq blink-cursor-mode nil)
Michael Cadilhac
2005-10-20 10:02:42 UTC
Permalink
Post by o***@yahoo.com
This is in emacs 21.3.1 on FC3. The cursor is blinking. I tried to
disable it
in .emacs with the following but neither one had effect. Any
suggestions?
(blink-cursor-mode 0)
This one should work. Don't know about 21.3.1, but have you tried
(blink-cursor-mode -1)
?

Look at C-h f blink-cursor-mode RET.
--
Michael Cadilhac, a.k.a. Micha [mika] |
Epita/LRDE promo 2007 | Please note that you should
2 rue de la Convention | 08.70.65.13.14 | s/-@t-/@/ my mail address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |
o***@yahoo.com
2005-10-20 16:23:17 UTC
Permalink
What is "C-h f" ?
Bastien
2005-10-20 16:44:36 UTC
Permalink
Post by o***@yahoo.com
What is "C-h f" ?
C-h k C-h f
--
Bastien
Maarten Bergvelt
2005-10-20 17:01:59 UTC
Permalink
Post by Bastien
Post by o***@yahoo.com
What is "C-h f" ?
C-h k C-h f
Very funny. Maybe onestatus needs to go through the tutorial?
--
Maarten Bergvelt
o***@yahoo.com
2005-10-21 00:40:59 UTC
Permalink
Post by Bastien
C-h k C-h f
This combination does not produce anything in 21.3.1. I have not
modified any bindings, I even removed my .emacs file.

So, any suggestions on how to disable the blinking cursor? The above
doesn't do it.
Bastien
2005-10-21 00:45:21 UTC
Permalink
Post by o***@yahoo.com
Post by Bastien
C-h k C-h f
This combination does not produce anything in 21.3.1.
It should produce the same than:

M-x describe-key M-x describe-function

It is not supposed to turn off the blink-cursor-mode but to enable you
to get information about a function (e.g. blink-cursor-mode.)
Post by o***@yahoo.com
I have not modified any bindings, I even removed my .emacs file.
Try M-x blink-cursor-mode - only if you run Emacs on X Window.

,----
| On window systems, the command Mx blink-cursor-mode turns on or off
| the blinking of the cursor. (On terminals, the terminal itself blinks
| the cursor.
`----
--
Bastien
o***@yahoo.com
2005-10-22 04:10:31 UTC
Permalink
This is from help.
Putting this variable in my .emacs either with 0, -1 or nil does not
have any effect. What can I do?


==================================
blink-cursor-mode is an interactive compiled Lisp function in `frame'.
(blink-cursor-mode ARG)

Toggle blinking cursor mode.
With a numeric argument, turn blinking cursor mode on iff ARG is
positive.
When blinking cursor mode is enabled, the cursor of the selected
window blinks.
Michael Cadilhac
2005-10-22 09:58:24 UTC
Permalink
Post by o***@yahoo.com
This is from help.
Putting this variable in my .emacs either with 0, -1 or nil does not
have any effect. What can I do?
It's *not* a variable, but a function to be called with a negative
argument to deactivate the feature.

Well we'll proceed step by step:

. Are you in a X window system ?

. Try just M-x blink-cursor-mode RET, it should toggle the blinking
state.

. Try not to put the function in your .emacs, just for a test :
Goto the *scratch* buffer and type
(blink-cursor-mode -1)
then M-x eval-buffer RET

. If everything of the previous worked, see if you don't already
have the (blink-cursor-mode) call somewhere in your .emacs and be
sure that you call it as a function.
--
Michael Cadilhac, a.k.a. Micha [mika] |
Epita/LRDE promo 2007 | Please note that you should
2 rue de la Convention | 08.70.65.13.14 | s/-@t-/@/ my mail address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |
o***@yahoo.com
2005-10-22 16:12:59 UTC
Permalink
Post by Michael Cadilhac
. Are you in a X window system ?
Yes, but I am running emacs -nw
Post by Michael Cadilhac
. Try just M-x blink-cursor-mode RET, it should toggle the blinking
state.
This was the first thing I tried. It does not toggle the blinking
state.
Post by Michael Cadilhac
Goto the *scratch* buffer and type
(blink-cursor-mode -1)
then M-x eval-buffer RET
No effect either.
o***@yahoo.com
2005-10-25 01:13:17 UTC
Permalink
(blink-cursor-mode -1) works but only when I run "emacs&".

When I invoke the -nw option in an xterm, as I always do, it has no
effect and the cursor blinks no matter what I do. A bug?
Bastien
2005-10-25 01:25:38 UTC
Permalink
Post by o***@yahoo.com
When I invoke the -nw option in an xterm, as I always do, it has no
effect and the cursor blinks no matter what I do. A bug?
No. See C-h f blink-cursor-mode:

,----[ Toggle blinking cursor mode. ]
| Note that this command is effective only when Emacs displays through
| a window system, because then Emacs does its own cursor display. On
| a text-only terminal, this is not implemented.
`----
--
Bastien
o***@yahoo.com
2005-10-26 06:02:05 UTC
Permalink
So what is the solution? Does the latest 21.4 version of emacs come
without the annoying blinking cursor? ( I just tried to compile it,
unssuccessfully. )

I 've used emacs with the "-nw" flag for years because it's much
faster, almost as fast as vi. To me, using the full-blown windowing
system is not an option, even on a fast computer.
Kevin Rodgers
2005-10-26 15:33:47 UTC
Permalink
Post by o***@yahoo.com
I 've used emacs with the "-nw" flag for years because it's much
faster, almost as fast as vi. To me, using the full-blown windowing
system is not an option, even on a fast computer.
So use emacsclient.
--
Kevin Rodgers
Andrea Vettorello
2005-10-26 08:12:49 UTC
Permalink
Post by o***@yahoo.com
(blink-cursor-mode -1) works but only when I run "emacs&".
When I invoke the -nw option in an xterm, as I always do, it has no
effect and the cursor blinks no matter what I do. A bug?
Quoted from the xterm FAQ (http://dickey.his.com/xterm/xterm.faq.html):

"Standard xterm does not implement a blinking cursor. Some of the
variations do: dtterm, GNOME Terminal, and XFree86 xterm (from mid
1999, patch 107). "

I can confirm that on Debian (Sid) the cursor on xterm doesn't blink,
at least as default. If you are using a gnome-terminal you should find
an option on "Profile" to disable blinking, instead if you are using
the text console, you can put the following line

echo -e '\033[?17;0;127c'

somewhere in your command shell startup file.

Hope this helps.


Andrea
o***@yahoo.com
2005-10-27 18:56:46 UTC
Permalink
Post by Andrea Vettorello
I can confirm that on Debian (Sid) the cursor on xterm doesn't blink,
at least as default. If you are using a gnome-terminal you should find
an option on "Profile" to disable blinking, instead if you are using
the text console, you can put the following line
I am running standard xterm, not a terminal. Never had issues with
until I upgraded to Linux Fedora Core 3. The default 21.3.1 emacs that
comes with it has that issue and I cannot turn it off when I use the
-nw "no-window" switch. Where do I submit this bug to so they hopefully
fix it later releases.
Post by Andrea Vettorello
echo -e '\033[?17;0;127c'>
This has no effect on anything but thanks anyway.

Continue reading on narkive:
Loading...