GNU bug report logs - #20922
blinking in linux console

Previous Next

Package: emacs;

Reported by: Samuel Wales <samologist <at> gmail.com>

Date: Sun, 28 Jun 2015 21:14:02 UTC

Severity: minor

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20922 in the body.
You can then email your comments to 20922 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Sun, 28 Jun 2015 21:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Wales <samologist <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Jun 2015 21:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Samuel Wales <samologist <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: blinking in linux console
Date: Sun, 28 Jun 2015 14:12:57 -0700
summary: can emacs do ANYTHING to not blink in the linux console?

linux is at its worst when you have to debug things in the console.  you
usually do not have your shell tools or emacs config or filesystem
hierarchy.  dead and broken keys impair the emacs experience.  and yet
you have to (1) solve the original problem and (2) get your system running.

this is exactly the time when some of us do NOT need the cursor to
blink.  in my own case, for health reasons, i cannot tolerate a
blinking cursor.  this impedes fixing the computer significantly and
is a problem in its own right.  but i know that others find it highly
annoying even though they do not have health reasons.  so i won't call
it an accessibility problem even though it is.  (aside: for some
reason, sometimes the free software community tends to dismiss
accessbility needs, while taking annoyance preferences seriously.
thus i sometimes try to cover both bases when it is an accessbility
issue.)

now, inb4, there are a few websites that cover the linux console.  even
on emacs sites.  for example:

  1) you can emit ansi sequences to turn the cursor into a red block.
  this fails, because emacs resets everything and blinks the cursor
  again.  also, if you are in the console in the first place, you
  possibly don't have access to this.

  2) you can do some kind of nonsense with terminal definitions, which
  fails because i don't remember why.  also, if you are in the console
  in the first place, you possibly don't have access to this.

  3) you can echo 0 > /sys/class/graphics/fbcon/cursor_blink.  this
  fails, because i don't know, it just fails.  also, ....

obviously, linux needs to grow up and stop assuming nobody needs to not have
kewl blinky flashy things.  so this should be fixed in linux.

but can emacs fix this so that it is not a problem in emacs any more?
regardless of whether linux has decided to fix the problem?

for example, can it fix whatever resetting the terminal broke?  can it
set its own terminal definition?

i do not know whether this is possible in principle or not.

(inb4 nothing at the lisp level in emacs fixes this, of course.)


thanks.


In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2015-01-11 on maritornes, modified by Debian




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Mon, 29 Jun 2015 11:48:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexis <flexibeast <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#20922: blinking in linux console
Date: Mon, 29 Jun 2015 21:40:30 +1000
Samuel Wales <samologist <at> gmail.com> writes:

>   3) you can echo 0 > /sys/class/graphics/fbcon/cursor_blink. 
>   this fails, because i don't know, it just fails.

This method works for me. i'm running Emacs 24.5.2 with Linux 
kernel 3.16.0-4 on Debian Jessie x86_64.

Do you get no error messages when you issue the above command (as 
root, of course)? Does subsequently doing:

$ cat /sys/class/graphics/fbcon/cursor_blink

produce "0" as the output?


Alexis.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Sun, 29 Sep 2019 23:22:02 GMT) Full text and rfc822 format available.

Message #11 received at 20922 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Alexis <flexibeast <at> gmail.com>
Cc: 20922 <at> debbugs.gnu.org
Subject: Re: bug#20922: blinking in linux console
Date: Mon, 30 Sep 2019 01:21:10 +0200
Alexis <flexibeast <at> gmail.com> writes:

> Samuel Wales <samologist <at> gmail.com> writes:
>
>>   3) you can echo 0 > /sys/class/graphics/fbcon/cursor_blink.   this fails,
>> because i don't know, it just fails.
>
> This method works for me. i'm running Emacs 24.5.2 with Linux kernel 3.16.0-4 on
> Debian Jessie x86_64.
>
> Do you get no error messages when you issue the above command (as root, of
> course)? Does subsequently doing:
>
> $ cat /sys/class/graphics/fbcon/cursor_blink
>
> produce "0" as the output?

I don't think Emacs controls the appearance of the Linux console, so
this is not a bug in Emacs.  I'm therefore closing this bug.  If
that's incorrect, please reopen.

Best regards,
Stefan Kangas




Added tag(s) notabug. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 29 Sep 2019 23:22:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 20922 <at> debbugs.gnu.org and Samuel Wales <samologist <at> gmail.com> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 29 Sep 2019 23:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Sun, 29 Sep 2019 23:37:01 GMT) Full text and rfc822 format available.

Message #18 received at 20922 <at> debbugs.gnu.org (full text, mbox):

From: Samuel Wales <samologist <at> gmail.com>
To: 20922 <at> debbugs.gnu.org
Subject: Re: bug#20922 acknowledged by developer ()
Date: Sun, 29 Sep 2019 16:35:56 -0700
i didn't mean to imply it is an emacs bug.

but even when i fix the cursor in the console, running emacs makes it
blink again.  probably not due to a bug, but because it does something
that has a bug?

in any case, it is a request for emacs to work around the bug, if possible.

thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Mon, 30 Sep 2019 06:29:01 GMT) Full text and rfc822 format available.

Message #21 received at 20922 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Samuel Wales <samologist <at> gmail.com>
Cc: 20922 <at> debbugs.gnu.org
Subject: Re: bug#20922: acknowledged by developer ()
Date: Mon, 30 Sep 2019 09:28:39 +0300
> From: Samuel Wales <samologist <at> gmail.com>
> Date: Sun, 29 Sep 2019 16:35:56 -0700
> 
> i didn't mean to imply it is an emacs bug.
> 
> but even when i fix the cursor in the console, running emacs makes it
> blink again.  probably not due to a bug, but because it does something
> that has a bug?
> 
> in any case, it is a request for emacs to work around the bug, if possible.

Does it help to set visible-cursor to nil?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Mon, 30 Sep 2019 20:22:01 GMT) Full text and rfc822 format available.

Message #24 received at 20922 <at> debbugs.gnu.org (full text, mbox):

From: Samuel Wales <samologist <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20922 <at> debbugs.gnu.org
Subject: Re: bug#20922: acknowledged by developer ()
Date: Mon, 30 Sep 2019 13:20:50 -0700
On 9/29/19, Eli Zaretskii <eliz <at> gnu.org> wrote:
> Does it help to set visible-cursor to nil?

;; this is a last resort
;;   does not work in linux console [2016-05-13 Fri 12:52]; that
;;   blinks an underscore now
;; (setq visible-cursor nil)

i have not tried it just now, but i never got that to improve the experience.

-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Mon, 30 Sep 2019 20:26:01 GMT) Full text and rfc822 format available.

Message #27 received at 20922 <at> debbugs.gnu.org (full text, mbox):

From: Samuel Wales <samologist <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20922 <at> debbugs.gnu.org
Subject: Re: bug#20922: acknowledged by developer ()
Date: Mon, 30 Sep 2019 13:25:06 -0700
just realized i don't need to reboot to try it.

in linux console in 4.9.0-11-amd64

1) i issue the inscrutable ansi sequence to make a nice red block cursor
2) i run emacs which produces a blinking white block
4) i setq visible-cursor to nil which produces a blinking underscore




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20922; Package emacs. (Tue, 01 Oct 2019 06:11:02 GMT) Full text and rfc822 format available.

Message #30 received at 20922 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Samuel Wales <samologist <at> gmail.com>
Cc: 20922 <at> debbugs.gnu.org
Subject: Re: bug#20922: acknowledged by developer ()
Date: Tue, 01 Oct 2019 09:10:23 +0300
> From: Samuel Wales <samologist <at> gmail.com>
> Date: Mon, 30 Sep 2019 13:25:06 -0700
> Cc: 20922 <at> debbugs.gnu.org
> 
> just realized i don't need to reboot to try it.
> 
> in linux console in 4.9.0-11-amd64
> 
> 1) i issue the inscrutable ansi sequence to make a nice red block cursor
> 2) i run emacs which produces a blinking white block
> 4) i setq visible-cursor to nil which produces a blinking underscore

Then I guess the problem is that Emacs sends the "ve" command (normal
cursor) to the terminal?  I'm not an expert on terminfo, but if
there's a way for a program to read the cursor properties, then Emacs
could do that at startup, and keep it, or restore it on exit.

Alternatively we might have a feature whereby users could set
attributes of the text-mode cursor for Emacs to use in its text
frames.  Patches welcome.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 29 Oct 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 179 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.