home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc095.zip / ckmcon.h < prev    next >
C/C++ Source or Header  |  1989-08-22  |  2KB  |  62 lines

  1. #define MAX_SCREENSIZE 288        /* maximum number of lines possible */
  2. #define INIT_SCREENSIZE 24        /* PWP: was 24 */
  3. #define MAXCOL      80
  4. #define LINEHEIGHT  11
  5. #define CHARWIDTH    6
  6. #define TOPMARGIN    2        /* Terminal display constants */
  7. #define bottomMARGIN (LINEHEIGHT * screensize + TOPMARGIN)
  8. #define LEFTMARGIN   2
  9. #define rightMARGIN  (CHARWIDTH * MAXCOL + LEFTMARGIN)
  10. #define LINEADJ      2        /* Amount of char below base line */
  11.  
  12. #define toplin 0
  13. #define botlin (screensize-1)
  14.  
  15. /* Font Numbers (UoR Mod) to fix bolding problems */
  16. /* These should be placed in the RESOURCE FORK of the executable */
  17.  
  18. #define VT100FONT  128        /* VT100 Terminal Font (not-bold) */
  19. #define VT100BOLD  129        /* VT100 Bold Font */
  20. #define VTDECTECH  130        /* DEC VT300 Technical */
  21.  
  22. /* (UoR) constansts that point to the function definitions for arrow keys */
  23. /*  Used by mouse cursor positioning function (chars that are transmitted last) */
  24.  
  25. # define UPARROW    'A'
  26. # define DOWNARROW  'B'
  27. # define leftARROW  'D'
  28. # define rightARROW 'C'
  29.  
  30. #define MOVEBEGLINE(v)    MoveTo ((LEFTMARGIN), \
  31.                 (((v) + 1) * LINEHEIGHT + TOPMARGIN - LINEADJ))
  32. #define MOVETOCHAR(h,v)    MoveTo (((h) * CHARWIDTH + LEFTMARGIN), \
  33.                     (((v) + 1) * LINEHEIGHT + TOPMARGIN - LINEADJ))
  34.  
  35. typedef unsigned char *ucharptr;
  36.  
  37. #define MAX_ARGCOUNT    16    /* max number of CSI <arg>; <arg>; ... CMD args */
  38. #define NUMBUFSIZ    16    /* max. length of digits or intermeadiate chars */
  39.                 /*  in a paramater string */
  40.  
  41. /* stuff for text styles */
  42.  
  43.             /* these styles we actually do with toolbox */
  44. #define STY_STY        0x0F
  45. #define STY_MSTY    0x07        /* styles that the Mac toobox can do */
  46. #define STY_FONT    0xF0
  47.  
  48. #define VT_UNDER    1
  49. #define VT_BLINK    2
  50. #define VT_BOLD        4
  51. #define VT_INVERT    8
  52.  
  53. #define F_VTLAT1    0
  54.  
  55. extern void term_reset();
  56.  
  57. #define ANS_VT100AVO    "\033[?1;2c"
  58. #define ANS_VT102    "\033[?6c"
  59. #define ANS_VT320    "\033[63;1;2;8;9c"
  60. #define ANS_VT52    "\033/Z"
  61. #define ANS_H19        "\033/K"
  62.