diff options
Diffstat (limited to 'mbbsd/term.c')
-rw-r--r-- | mbbsd/term.c | 10 |
1 files changed, 5 insertions, 5 deletions
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'); } |