all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 10959@debbugs.gnu.org, vincent@vinc17.net
Subject: bug#10959: 23.3; emacs -nw doesn't always restore the terminal screen
Date: Sat, 16 Jun 2012 10:41:26 +0300	[thread overview]
Message-ID: <831ulfg0ux.fsf@gnu.org> (raw)
In-Reply-To: <jwvmx43zsb5.fsf-monnier+emacs@gnu.org>

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Date: Sat, 16 Jun 2012 02:26:41 -0400
> Cc: 10959@debbugs.gnu.org
> 
> >> This problem still occurs with GNU Emacs 23.4.1 from the Debian
> >> package emacs23 23.4+1-2 (tested in xterm).
> > and it still occurs with the official GNU Emacs 24.1.1.
> 
> Thanks for checking and confirming.  I hope someone who actually know
> about such terminal setup/restore will have a chance to look at it.

I know very little about this, but here's what I know: this feature
relies upon the "ti" and "te" terminal capabilities.  We use these
capabilities in tty_set_terminal_modes and tty_reset_terminal_modes,
respectively.  In both cases, we output the terminal command only if
the tty->output FILE stream is non-NULL.  So perhaps some timing
issues cause tty->output to become NULL before we get to
tty_reset_terminal_modes, or maybe it is still NULL when we get to
tty_set_terminal_modes?  In any case, adding some logs to those places
could show if that is the problem.

Alternatively, could it be a problem with the terminal emulators, not
in Emacs?





  reply	other threads:[~2012-06-16  7:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06 15:01 bug#10959: 23.3; emacs -nw doesn't always restore the terminal screen Vincent Lefevre
2012-03-22 11:19 ` Vincent Lefevre
2012-06-15 14:21   ` Vincent Lefevre
2012-06-16  6:26     ` Stefan Monnier
2012-06-16  7:41       ` Eli Zaretskii [this message]
2012-06-16 10:00         ` Chong Yidong
2012-06-16 16:13         ` Vincent Lefevre
2012-03-22 11:25 ` Vincent Lefevre
2012-03-22 15:38 ` Stefan Monnier
2015-10-09 12:59 ` Vincent Lefevre

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831ulfg0ux.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=10959@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=vincent@vinc17.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.