summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 03:43:07 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 03:43:07 +0800
commit66ef2c085317e18a704cfbe7e98f2b448ca58e16 (patch)
tree7c7689bb97f1f4528b402939a84e0876611dfe7f /mbbsd
parent09e684d5aecd13df3c8b226306ca41c10c27f242 (diff)
downloadpttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.tar
pttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.tar.gz
pttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.tar.bz2
pttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.tar.lz
pttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.tar.xz
pttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.tar.zst
pttbbs-66ef2c085317e18a704cfbe7e98f2b448ca58e16.zip
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
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;