home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / ttychars < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.8 KB  |  68 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/ttychars.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/ttychars.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    ttychars.h,v $
  8.  * Revision 1.1  95/01/11  10:20:04  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:22:08  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)ttychars.h    1.2 87/05/15 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)ttychars.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /*
  25.  * User visible structures and constants
  26.  * related to terminal handling.
  27.  */
  28. #ifndef _TTYCHARS_
  29. #define    _TTYCHARS_
  30. struct ttychars {
  31.     char    tc_erase;    /* erase last character */
  32.     char    tc_kill;    /* erase entire line */
  33.     char    tc_intrc;    /* interrupt */
  34.     char    tc_quitc;    /* quit */
  35.     char    tc_startc;    /* start output */
  36.     char    tc_stopc;    /* stop output */
  37.     char    tc_eofc;    /* end-of-file */
  38.     char    tc_brkc;    /* input delimiter (like nl) */
  39.     char    tc_suspc;    /* stop process signal */
  40.     char    tc_dsuspc;    /* delayed stop process signal */
  41.     char    tc_rprntc;    /* reprint line */
  42.     char    tc_flushc;    /* flush output (toggles) */
  43.     char    tc_werasc;    /* word erase */
  44.     char    tc_lnextc;    /* literal next character */
  45. };
  46.  
  47. #define    CTRL(c)    ((c) & 037)
  48.  
  49. /* default special characters */
  50. #define    CERASE    0177
  51. #define    CKILL    CTRL('u')
  52. #define    CINTR    CTRL('c')
  53. #define    CQUIT    034        /* FS, ^\ */
  54. #define    CSTART    CTRL('q')
  55. #define    CSTOP    CTRL('s')
  56. #define    CEOF    CTRL('d')
  57. #define    CEOT    CEOF
  58. #define    CBRK    0377
  59. #define    CSUSP    CTRL('z')
  60. #define    CDSUSP    CTRL('y')
  61. #define    CRPRNT    CTRL('r')
  62. #define    CFLUSH    CTRL('o')
  63. #define    CWERASE    CTRL('w')
  64. #define    CLNEXT    CTRL('v')
  65. #endif
  66.  
  67. /* EOF ttychars.h */
  68.