home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ncr9800 / sgtty.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  1KB  |  77 lines

  1. struct sgttyb {
  2.     char    sg_ispeed;        /* input speed */
  3.     char    sg_ospeed;        /* output speed */
  4.     char    sg_erase;        /* erase character */
  5.     char    sg_kill;        /* kill character */
  6.     int    sg_flags;        /* mode flags */
  7. };
  8.  
  9. /*
  10.  * Modes
  11.  */
  12. #define    HUPCL    01
  13. #define    XTABS    02
  14. #define    LCASE    04
  15. #define    ECHO    010
  16. #define    CRMOD    020
  17. #define    RAW    040
  18. #define    ODDP    0100
  19. #define    EVENP    0200
  20. #define ANYP    0300
  21. #define    NLDELAY    001400
  22. #define    TBDELAY    002000
  23. #define    CRDELAY    030000
  24. #define    VTDELAY    040000
  25. #define BSDELAY 0100000
  26. #define ALLDELAY 0177400
  27.  
  28. /*
  29.  * Delay algorithms
  30.  */
  31. #define    CR0    0
  32. #define    CR1    010000
  33. #define    CR2    020000
  34. #define    CR3    030000
  35. #define    NL0    0
  36. #define    NL1    000400
  37. #define    NL2    001000
  38. #define    NL3    001400
  39. #define    TAB0    0
  40. #define    TAB1    002000
  41. #define    NOAL    004000
  42. #define    FF0    0
  43. #define    FF1    040000
  44. #define    BS0    0
  45. #define    BS1    0100000
  46.  
  47. /*
  48.  * Speeds
  49.  */
  50. #define B0    0
  51. #define B50    1
  52. #define B75    2
  53. #define B110    3
  54. #define B134    4
  55. #define B150    5
  56. #define B200    6
  57. #define B300    7
  58. #define B600    8
  59. #define B1200    9
  60. #define    B1800    10
  61. #define B2400    11
  62. #define B4800    12
  63. #define B9600    13
  64. #define EXTA    14
  65. #define EXTB    15
  66.  
  67. /*
  68.  *    ioctl arguments
  69.  */
  70. #define FIOCLEX        (('f'<<8)|1)
  71. #define FIONCLEX    (('f'<<8)|2)
  72. #define    TIOCHPCL    (('t'<<8)|2)
  73. #define    TIOCGETP    (('t'<<8)|8)
  74. #define    TIOCSETP    (('t'<<8)|9)
  75. #define    TIOCEXCL    (('t'<<8)|13)
  76. #define    TIOCNXCL    (('t'<<8)|14)
  77.