unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: blink-cursor-mode under ttys
Date: Fri, 23 Dec 2005 12:07:56 -0500	[thread overview]
Message-ID: <87hd8zeoci.fsf-monnier+emacs@gnu.org> (raw)


In my xterm, blink-cursor-mode doesn't work.
Looking at the code I don't see any not and indeed it can be made to work
by changing

 (defun blink-cursor-timer-function ()
   "Timer function of timer `blink-cursor-timer'."
   (internal-show-cursor nil (not (internal-show-cursor-p))))

into

 (defun blink-cursor-timer-function ()
   "Timer function of timer `blink-cursor-timer'."
   (internal-show-cursor nil (not (internal-show-cursor-p)))
   (let ((message-log-max nil)
         (msg (current-message)))
     (message "force cursor update")
     (if msg (message "%s" msg) (message nil))))

Note that neither (force-mode-line-update t) nor (sit-for 0) nor the
combination of the two manages to cause "enough redisplay".


        Stefan

             reply	other threads:[~2005-12-23 17:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-23 17:07 Stefan Monnier [this message]
2005-12-23 20:22 ` blink-cursor-mode under ttys Dan Nicolaescu
2005-12-23 20:44   ` Juri Linkov
2005-12-24 18:06   ` Stefan Monnier
2005-12-25 19:07     ` Richard M. Stallman
2005-12-26 16:23       ` Stefan Monnier
2005-12-26 21:56         ` Richard M. Stallman
2005-12-24  2:36 ` Richard M. Stallman

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=87hd8zeoci.fsf-monnier+emacs@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).