home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / c / string.arc / ASCII.H < prev    next >
Text File  |  1984-12-31  |  3KB  |  56 lines

  1. /*  File   : strings.d/ascii.h
  2.     Author : Richard A. O'Keefe
  3.     Updated: 28 April 1984
  4.     Purpose: Define Ascii mnemonics.
  5.  
  6.     This file defines the ASCII control characters.  Note that these
  7.     names refer to their use in communication; it is an ERROR to use
  8.     these names to talk about keyboard commands.  For example, DO NOT
  9.     use EOT when you mean "end of file", as many people prefer ^Z (if
  10.     the Ascii code were taken seriously, EOT would log you off and
  11.     hang up the line as well).  Similarly, DO NOT use DEL when you
  12.     mean "interrupt", many people prefer ^C.  When writing a screen
  13.     editor, you should speak of tocntrl('C') rather than ETX (see the
  14.     header file "ctypes.h").
  15. */
  16.  
  17. #define NUL    '\000'    /* null character */
  18. #define SOH    '\001'    /* Start Of Heading, start of message */
  19. #define STX    '\002'    /* Start Of Text, end of address */
  20. #define    ETX    '\003'    /* End of TeXt, end of message */
  21. #define EOT    '\004'    /* End Of Transmission */
  22. #define    ENQ    '\005'    /* ENQuiry "who are you" */
  23. #define ACK    '\006'    /* (positive) ACKnowledge */
  24. #define    BEL    '\007'    /* ring the BELl */
  25. #define    BS    '\010'    /* BackSpace */
  26. #define    HT    '\011'    /* Horizontal Tab */
  27. #define    TAB    '\011'    /* an unofficial name for HT */
  28. #define    LF    '\012'    /* Line Feed (does not imply cr) */
  29. #define    NL    '\012'    /* unix unofficial name for LF: new line */
  30. #define    VT    '\013'    /* Vertical Tab */
  31. #define    FF    '\014'    /* Form Feed (new page starts AFTER this) */
  32. #define    CR    '\015'    /* Carriage Return */
  33. #define    SO    '\016'    /* Shift Out; select alternate character set */
  34. #define    SI    '\017'    /* Shift In; select ASCII again */
  35. #define    DLE    '\020'    /* Data Link Escape */
  36. #define    DC1    '\021'    /* Device Control 1 */
  37. #define XON    '\021'    /* transmitter on, resume output */
  38. #define    DC2    '\022'    /* Device Control 2 (auxiliary on) */
  39. #define    DC3    '\023'    /* Device Control 3 */
  40. #define    XOFF    '\023'    /* transmitter off, suspend output */
  41. #define    DC4    '\024'    /* Device Control 4 (auxiliary off) */
  42. #define    NAK    '\025'    /* Negative AcKnowledge (signal error) */
  43. #define    SYN    '\026'    /* SYNchronous idle */
  44. #define    ETB    '\027'    /* End of Transmission Block, logical end of medium */
  45. #define    CAN    '\030'    /* CANcel */
  46. #define    EM    '\031'    /* End of Medium */
  47. #define    SUB    '\032'    /* SUBstitute */
  48. #define    ESC    '\033'    /* ESCape */
  49. #define    FS    '\034'    /* File Separator */
  50. #define    GS    '\035'    /* Group Separator */
  51. #define    RS    '\036'    /* Record Separator */
  52. #define    US    '\037'    /* Unit Separator */
  53. #define    SP    '\040'    /* SPace */
  54. #define    DEL    '\177'    /* DELete, rubout */
  55.