w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 92c2f4059e0edbd55d909b59380c5f06f0ddcb7d
parent 702aa3cfb8436021c1059a813212476dd502a6cd
Author: ukai <ukai>
Date:   Tue, 25 Dec 2001 09:59:38 +0000

[w3m-dev 02721]
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 6++++++
Mmain.c | 16++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-25 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 02721] + * main.c (resize_handler): added + * main.c (MAIN): use resize_handler in getch() + 2001-12-25 WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp> * [w3m-dev 02714] diff --git a/main.c b/main.c @@ -47,6 +47,7 @@ static MySignalHandler SigAlarm(SIGNAL_ARG); #ifdef SIGWINCH static int resized = 0; +MySignalHandler resize_handler(SIGNAL_ARG); #endif #ifdef USE_MARK @@ -948,8 +949,12 @@ MAIN(int argc, char **argv, char **envp) if (Currentbuf) displayBuffer(Currentbuf, B_FORCE_REDRAW); } + signal(SIGWINCH, resize_handler); #endif c = getch(); +#ifdef SIGWINCH + signal(SIGWINCH, resize_hook); +#endif #ifdef USE_ALARM if (alarm_sec > 0) { alarm(0); @@ -1181,6 +1186,17 @@ resize_hook(SIGNAL_ARG) signal(SIGWINCH, resize_hook); SIGNAL_RETURN; } + +MySignalHandler +resize_handler(SIGNAL_ARG) +{ + setlinescols(); + setupscreen(); + if (Currentbuf) + displayBuffer(Currentbuf, B_FORCE_REDRAW); + signal(SIGWINCH, resize_handler); + SIGNAL_RETURN; +} #endif /* SIGWINCH */ /*