Bug 240407 - ssh should save and restore terminal state
ssh should save and restore terminal state
Product: Fedora
Classification: Fedora
Component: openssh (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2007-05-17 08:00 EDT by Jon Dufresne
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-17 09:29:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Desktop 438977 None None None Never

  None (edit)
Description Jon Dufresne 2007-05-17 08:00:21 EDT
Description of problem:
Please refer to gnome bug 438977
http://bugzilla.gnome.org/show_bug.cgi?id=438977 for the motivation behind this
bug report.

It seems when a ssh server closes a connection with a client unexpectadly the
terminal state remains in state from the ssh session. If this terminal state is
"fullscreen" (as emacs puts it in) then the user will lose their ability to
scroll in their terminal.

I propose that a fix for this would be that before a ssh sessions connects, ssh
should save the state, then upon exiting restore that state, regardless of what
happened inside the ssh session.

Program flow could be something like this

save terminal state
start ssh session
close ssh session
restore terminal state

In this case if the ssh session crashed while in "fullscreen" mode it would not
affect the user.

Version-Release number of selected component (if applicable):
$ ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
Comment 1 Tomas Mraz 2007-05-17 09:29:46 EDT
The same thing happens if a program running locally (without the ssh connection)
which puts the terminal into a fullscreen mode crashes.

You can reset the terminal's mode using the 'reset' command.

You can propose this feature request upstream (http://bugzilla.mindrot.org/).

Note You need to log in before you can comment on or make changes to this bug.