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

* bug#7002: Emacs initializes the alternate screen twice
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2010-09-11 12:55 UTC (permalink / raw)
  To: emacs-bugs-7626

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

Thanks, installed in the emacs-23 branch.

In the future, please include a name of some sort in your
communications, since we need it to maintain accurate
copyright information.


        Stefan





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

* bug#7002: Emacs initializes the alternate screen twice
  2010-09-11 12:55 ` Stefan Monnier
@ 2010-09-11 16:29   ` Courtney Bane
  0 siblings, 0 replies; 3+ messages in thread
From: Courtney Bane @ 2010-09-11 16:29 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 7002

On Sat, Sep 11, 2010 at 02:55:16PM +0200, Stefan Monnier wrote:
> Thanks, installed in the emacs-23 branch.

Great, thanks.

> In the future, please include a name of some sort in your
> communications, since we need it to maintain accurate
> copyright information.

Sorry about that. I don't send much email from my alternate addresses,
and forgot to include my name on that one.

-- 
Courtney Bane (emacs-bugs-7626@cbane.org)
"He that would make his own liberty secure, must guard even his enemy
from oppression; for if he violates this duty, he establishes a
precedent that will reach to himself."  -- Thomas Paine





^ permalink raw reply	[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).