home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / DOANSI.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  1KB  |  48 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  DOANSI.H - Portable ANSI screen code interpreter
  5. **
  6. **  From DRSK_105.LZH (ansi.c), hereby declared free for use for whatever
  7. **  purposes by author: Mark Kimes
  8. */
  9.  
  10. #ifndef DOANSI__H
  11. #define DOANSI__H
  12.  
  13. extern char curattr;
  14. extern int  curx, cury;
  15. extern int  maxx, maxy;
  16. extern int  realmaxy,realmaxx;
  17. extern char useansi;
  18. extern int  tabspaces;
  19.  
  20. /* set maxx,maxy as desired */
  21. void set_screensize (int reservedlines);
  22.  
  23. /* put character c at x,y using attr as attribute */
  24. void put_char (char c,char attr,int x,int y);
  25.  
  26. /* position hardware cursor at x,y */
  27. void pos_hardcursor (int x,int y);
  28.  
  29. /* turn hardware cursor off */
  30. void hardcursor_off (void);
  31.  
  32. /* turn hardware cursor on at x,y */
  33. void hardcursor_on (int x,int y);
  34.  
  35. /* scroll window tx,ty - bx,by up one line; fill with blank+attr */
  36. void scroll_up (int tx,int ty,int bx,int by,char attr);
  37.  
  38. /* clear the window from tx,ty - bx,by; fill with blank+attr */
  39. void clearwindow (int tx,int ty,int bx,int by,char attr);
  40.  
  41. /* clear line y from col x to eol (ex); fill with blank+attr */
  42. void cleartoeol (int x,int y,int ex,char attr);
  43.  
  44. /* the ansi string interpreter */
  45. int ansi_out (char *buf);
  46.  
  47. #endif /* DOANSI__H */
  48.