Article View: gnu.emacs.bug
Article #99409Checking screen size on resume (was: vi triumphs over emacs!)
From: Joseph Wells
Date: Fri, 21 Sep 1990 22:04
Date: Fri, 21 Sep 1990 22:04
33 lines
1713 bytes
1713 bytes
Joe> GNU Emacs unfortunately only interrogates the system for the screen
Joe> size when it receives a SIGWINCH and on startup.
Scott> Actually, I think this'd be a good time, too. Maybe I'll go look
Scott> at sources sometime tonight.
It's a simple fix to make Emacs check the screen size when resuming after
a suspend:
*** /usr14/gnu/dist-18.55/src/keyboard.c Mon Sep 4 03:46:20 1989
--- keyboard.c Fri Sep 21 17:59:11 1990
***************
*** 1653,1656 ****
--- 1653,1664 ----
unbind_to (count);
+ /* Check if terminal/window size has changed */
+ if (inhibit_window_system)
+ {
+ int width, height;
+ get_screen_size (&width, &height);
+ change_screen_size (height, width, 0);
+ }
+
/* Call value of suspend-resume-hook
if it is bound and value is non-nil. */
Scott> Yes, you can fix it in emacs (but you can fix _anything_ in elisp).
Agreed!
--
Joe Wells <jbw@bu.edu>
Technical Details
Message-ID:
<9009212204.AA10025@bucsf.bu.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!BUCSF.BU.EDU!jbwReferences:
<9009210028.AA02383@mcs-server.gac.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,e2b2d0d152bea15f,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-09-21 15:04:11 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!BUCSF.BU.EDU!jbw From: jbw@BUCSF.BU.EDU (Joseph Wells) Newsgroups: gnu.emacs.bug Subject: Checking screen size on resume (was: vi triumphs over emacs!) Message-ID: <9009212204.AA10025@bucsf.bu.edu> Date: 21 Sep 90 22:04:11 GMT References: <9009210028.AA02383@mcs-server.gac.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33 Posted: Fri Sep 21 23:04:11 1990