summaryrefslogtreecommitdiffstats
path: root/mbbsd/pfterm.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-04 20:21:50 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-04 20:21:50 +0800
commit3dd3ec79c7807da0c31411b6981fda8c23d77dab (patch)
treef5db7558d410058dd03aaf720362012581326bef /mbbsd/pfterm.c
parentaf6e9ec70228249a462a9a4fd5aa4977733f9e13 (diff)
downloadpttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.tar
pttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.tar.gz
pttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.tar.bz2
pttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.tar.lz
pttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.tar.xz
pttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.tar.zst
pttbbs-3dd3ec79c7807da0c31411b6981fda8c23d77dab.zip
- dice: no longer supported
- pfterm: more safe check - board: output message finetune git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3899 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pfterm.c')
-rw-r--r--mbbsd/pfterm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/pfterm.c b/mbbsd/pfterm.c
index b3f6e7fc..32df0324 100644
--- a/mbbsd/pfterm.c
+++ b/mbbsd/pfterm.c
@@ -618,6 +618,7 @@ void
clrtoeol(void)
{
ft.x = ranged(ft.x, 0, ft.cols-1);
+ ft.y = ranged(ft.y, 0, ft.rows-1);
memset(FTPC, FTCHAR_ERASE, ft.cols - ft.x);
memset(FTPA, FTATTR_ERASE, ft.cols - ft.x);
fterm_markdirty();
@@ -627,6 +628,7 @@ void
clrtobeg(void)
{
ft.x = ranged(ft.x, 0, ft.cols-1);
+ ft.y = ranged(ft.y, 0, ft.rows-1);
memset(FTCROW, FTCHAR_ERASE, ft.x+1);
memset(FTAROW, FTATTR_ERASE, ft.x+1);
fterm_markdirty();
@@ -635,6 +637,7 @@ clrtobeg(void)
void
clrcurrline(void)
{
+ ft.y = ranged(ft.y, 0, ft.rows-1);
memset(FTCROW, FTCHAR_ERASE, ft.cols);
memset(FTAROW, FTATTR_ERASE, ft.cols);
fterm_markdirty();