unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7002: Emacs initializes the alternate screen twice
@ 2010-09-08 23:41 emacs-bugs-7626
  2010-09-11 12:55 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: emacs-bugs-7626 @ 2010-09-08 23:41 UTC (permalink / raw)
  To: 7002

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

When a console-mode Emacs initializes its terminal, it sends the escape
sequence to switch to the alternate screen twice. This causes problems
when running under screen (and maybe other terminal programs as well):
exiting or suspending Emacs completely clears the screen. I have
attached a patch that fixes this.

[-- Attachment #2: fix-double-alt-screen-init.diff --]
[-- Type: text/x-diff, Size: 418 bytes --]

diff --git a/src/term.c b/src/term.c
index fda06d6..fc013be 100644
--- a/src/term.c
+++ b/src/term.c
@@ -250,7 +250,6 @@ tty_set_terminal_modes (struct terminal *terminal)
             cmputc ('\n');
         }

-      OUTPUT_IF (tty, tty->TS_termcap_modes);
       OUTPUT_IF (tty, visible_cursor ? tty->TS_cursor_visible : tty->TS_cursor_normal);
       OUTPUT_IF (tty, tty->TS_keypad_mode);
       losecursor (tty);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-11 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-08 23:41 bug#7002: Emacs initializes the alternate screen twice emacs-bugs-7626
2010-09-11 12:55 ` Stefan Monnier
2010-09-11 16:29   ` Courtney Bane

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