From 66ef2c085317e18a704cfbe7e98f2b448ca58e16 Mon Sep 17 00:00:00 2001
From: kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
Date: Sat, 24 Aug 2002 19:43:07 +0000
Subject: turn on full screen support if shell login.

git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
---
 mbbsd/mbbsd.c | 4 +++-
 mbbsd/term.c  | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

(limited to 'mbbsd')

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 �����򤣦P, ���������� */
     b_lines = t_lines - 1;
     p_lines = t_lines - 4;
 
-- 
cgit v1.2.3