diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-25 09:59:38 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-25 09:59:38 +0000 |
commit | 0693cb0572f87a51e2cd719e4eb00a5152857d0a (patch) | |
tree | 01c263337538c1c7f2d416f4ad002286070170b5 | |
parent | [w3m-dev 02714] (diff) | |
download | w3m-0693cb0572f87a51e2cd719e4eb00a5152857d0a.tar.gz w3m-0693cb0572f87a51e2cd719e4eb00a5152857d0a.zip |
[w3m-dev 02721]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | main.c | 18 |
2 files changed, 24 insertions, 2 deletions
@@ -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] @@ -1481,4 +1487,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.167 2001/12/25 09:16:23 ukai Exp $ +$Id: ChangeLog,v 1.168 2001/12/25 09:59:38 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.44 2001/12/25 09:08:58 ukai Exp $ */ +/* $Id: main.c,v 1.45 2001/12/25 09:59:39 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -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 */ /* |