From 1e09228b6566d733f75b150078149b0046b46e45 Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 16 Jul 2005 01:47:40 +0000 Subject: make getdata support prompt with ANSI escapes. old code makes correct positioning but wrong attributes git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2933 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/ansi.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ansi.h b/include/ansi.h index d75df914..faa3b0f8 100644 --- a/include/ansi.h +++ b/include/ansi.h @@ -19,6 +19,9 @@ #define ANSI_MOVETO(y,x) ESC_STR "[" #y ";" #x "H" #define ANSI_CLRTOEND ESC_STR "[K" +#define ANSI_SAVEPOS ESC_STR "[s" +#define ANSI_RESTOREPOS ESC_STR "[u" + #define ANSI_IN_ESCAPE(x) (((x) >= '0' && (x) <= '9') || \ (x) == ';' || (x) == ',' || (x) == '[') -- cgit v1.2.3