From 44a8707e3248a258ecdb1615ba12b5461807eec9 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 8 Jun 2005 04:22:19 +0000 Subject: apply ansi system to more files git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/term.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mbbsd/term.c') diff --git a/mbbsd/term.c b/mbbsd/term.c index 782d07b8..2ef13ed0 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -80,7 +80,7 @@ do_move(int destcol, int destline) { char buf[16], *p; - snprintf(buf, sizeof(buf), "\33[%d;%dH", destline + 1, destcol + 1); + snprintf(buf, sizeof(buf), ANSI_MOVETO(%d,%d), destline + 1, destcol + 1); for (p = buf; *p; p++) ochar(*p); } @@ -88,14 +88,14 @@ do_move(int destcol, int destline) void save_cursor(void) { - ochar('\33'); + ochar(ESC_CHR); ochar('7'); } void restore_cursor(void) { - ochar('\33'); + ochar(ESC_CHR); ochar('8'); } @@ -104,7 +104,7 @@ change_scroll_range(int top, int bottom) { char buf[16], *p; - snprintf(buf, sizeof(buf), "\33[%d;%dr", top + 1, bottom + 1); + snprintf(buf, sizeof(buf), ESC_STR "[%d;%dr", top + 1, bottom + 1); for (p = buf; *p; p++) ochar(*p); } @@ -112,6 +112,6 @@ change_scroll_range(int top, int bottom) void scroll_forward(void) { - ochar('\33'); + ochar(ESC_CHR); ochar('D'); } -- cgit v1.2.3