home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / communic / ansi_bbs / ansi.h next >
Encoding:
C/C++ Source or Header  |  1992-01-06  |  1.1 KB  |  48 lines

  1. /*--------------------------------------------------------------------------
  2. *
  3. * Filename : ANSI.H
  4. *
  5. * Author : Jim Sloan, Asgard Software
  6. *
  7. * Compiler : Microsoft C 5.1
  8. *
  9. * Description : ANSI X3.4 escape sequence interpretations
  10. *
  11. * Copyright (c) - 1992 - Asgard Software, Jim Sloan. All rights reserved.
  12. *
  13. *--------------------------------------------------------------------------*/
  14.  
  15.  
  16. extern int bottom_row;
  17. extern int right_margin;
  18. extern int top_row;
  19. extern int left_margin;
  20.  
  21. extern int fast_video;
  22.  
  23. struct attr_bits
  24. {
  25.    unsigned foreground:3;
  26.    unsigned bright:1;
  27.    unsigned background:3;
  28.    unsigned blink:1;
  29. };
  30.  
  31. union ATTR
  32. {
  33.    struct attr_bits set;
  34.    unsigned char color;
  35. };
  36.  
  37.  
  38. extern union ATTR attr;
  39.  
  40.  
  41. int ansi_cmd(int ch);
  42. void write_char(int ch, int attr);
  43. void pos_curs(int row, int col);
  44. void scroll_up(int trow, int lcol, int brow, int rcol, int count, int attr);
  45. void scroll_dn(int trow, int lcol, int brow, int rcol, int count, int attr);
  46. void cls(int trow, int lcol, int brow, int rcol, int attr);
  47. void (*send_out)(char *);
  48.