home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug005.arc / WDEFINES.H < prev    next >
Text File  |  1979-12-31  |  1KB  |  25 lines

  1. struct    Window
  2. {    int    Column;    /* Displacement from left side of Screen */
  3.     int     Row;    /* Displacement from top of Screen */
  4.     int    Width;    /* width of window in bytes */
  5.     int    Depth;    /* depth of window in bytes */
  6.     int    CursX;    /* cursor X displacement within the window */
  7.     int    CursY;    /* cursor Y displacement within the window */
  8.     char    Fore;    /* foreground colour */
  9.     char    Back;    /* background colour */
  10. };
  11. /* now to define all the control characters which may be in the string */
  12. #define    Bell    7    /* ^g ring the bell - no display */
  13. #define Left    8    /* ^h move cursor left one position */
  14. #define Tab    9    /* ^i space fill to next TAB position (8) */
  15. #define Down    10    /* ^j move cursor down one line */
  16. #define Up    11    /* ^k move cursor up one line */
  17. #define    Right    12    /* ^l move cursor right one position */
  18. #define Return    13    /* ^m go to the beginning of the next line */
  19. #define Clrline    20     /* ^t space fill rest of the current line */
  20. #define Cancel    24    /* ^x to cancel input so far */
  21. #define Clrpage    25    /* ^y space fill rest of window from here */
  22. #define Clear    26     /* ^z space fill the window and go to top left */
  23. #define Home    30    /* ^^ go to top left corner of the window */
  24. #define Delete     127    /* DEL delete a character and move cursor back */ 
  25.