summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c4
-rw-r--r--mbbsd/term.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 0f224366..fb4917c1 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.51 2002/08/24 14:08:30 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.52 2002/08/24 19:43:07 kcwu Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -914,6 +914,8 @@ do_term_init()
{
term_init();
initscr();
+ if(use_shell_login_mode)
+ raise(SIGWINCH);
}
static void
diff --git a/mbbsd/term.c b/mbbsd/term.c
index d329e8ba..e3efe3db 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.7 2002/08/24 19:15:24 kcwu Exp $ */
+/* $Id: term.c,v 1.8 2002/08/24 19:43:07 kcwu Exp $ */
#include "bbs.h"
int tgetent(const char *bp, char *name);
@@ -71,7 +71,7 @@ term_resize(int sig)
big_picture = new_picture;
}
t_lines = newsize.ws_row;
- scr_lns = t_lines;
+ scr_lns = t_lines; /* XXX: scr_lns 跟 t_lines 有什麼不同, 為何分成兩個 */
b_lines = t_lines - 1;
p_lines = t_lines - 4;