From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/CONTRIB/SNIP/doansi.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 reference/C/CONTRIB/SNIP/doansi.h (limited to 'reference/C/CONTRIB/SNIP/doansi.h') diff --git a/reference/C/CONTRIB/SNIP/doansi.h b/reference/C/CONTRIB/SNIP/doansi.h new file mode 100755 index 0000000..d91f4ef --- /dev/null +++ b/reference/C/CONTRIB/SNIP/doansi.h @@ -0,0 +1,33 @@ +/* +** DOANSI.H - Portable ANSI screen code interpreter +** +** From DRSK_105.LZH (ansi.c), hereby declared free for use for whatever +** purposes by author: Mark Kimes +*/ + +/* set maxx,maxy as desired */ +void set_screensize (int reservedlines); + +/* put character c at x,y using attr as attribute */ +void put_char (char c,char attr,int x,int y); + +/* position hardware cursor at x,y */ +void pos_hardcursor (int x,int y); + +/* turn hardware cursor off */ +void hardcursor_off (void); + +/* turn hardware cursor on at x,y */ +void hardcursor_on (int x,int y); + +/* scroll window tx,ty - bx,by up one line; fill with blank+attr */ +void scroll_up (int tx,int ty,int bx,int by,char attr); + +/* clear the window from tx,ty - bx,by; fill with blank+attr */ +void clearwindow (int tx,int ty,int bx,int by,char attr); + +/* clear line y from col x to eol (ex); fill with blank+attr */ +void cleartoeol (int x,int y,int ex,char attr); + +/* the ansi string interpreter */ +int ansi_out (char *buf); -- cgit v1.2.3-54-g00ecf