Imported Upstream version 302
[ckermit.git] / ckcasc.h
1 /*
2   File CKCASC.H
3   Mnemonics for ASCII control characters (and Space) for use with C-Kermit.
4 */
5 /*
6   Author: Frank da Cruz (fdc@columbia.edu).
7   Columbia University Academic Information Systems, New York City.
8
9   Copyright (C) 1985, 2009,
10     Trustees of Columbia University in the City of New York.
11     All rights reserved.  See the C-Kermit COPYING.TXT file or the
12     copyright text in the ckcmai.c module for disclaimer and permissions.
13 */
14 #ifndef CKCASC_H
15 #define CKCASC_H
16
17 #define NUL  '\0'       /* Null Ctrl-@*/
18 #define SOH    1        /* Start of header Ctrl-A */
19 #define STX    2        /* Ctrl-B */
20 #define ETX    3        /* Ctrl-C */
21 #define EOT    4        /* Ctrl-D */
22 #define ENQ    5        /* ENQ Ctrl-E */
23 #define ACK    6        /* Ctrl-F */
24 #define BEL    7        /* Bell (Beep) Ctrl-G */
25 #define BS     8        /* Backspace Ctrl-H */
26 #define HT     9        /* Horizontal Tab Ctrl-I */
27 #define LF    10        /* Linefeed Ctrl-J */
28 #define VT    11        /* Vertical Tab Ctrl-K */
29 #define NL   '\n'       /* Newline */
30 #define FF    12        /* Formfeed Ctrl-L */
31 #define CR    13        /* Carriage Return Ctrl-M */
32 #define SO    14        /* Shift Out Ctrl-N */
33 #define SI    15        /* Shift In Ctrl-O */
34 #define DLE   16        /* Datalink Escape Ctrl-P */
35 #define XON   17        /* XON Ctrl-Q */
36 #define DC1   17
37 #define DC2   18        /* Ctrl-R */
38 #define XOFF  19        /* XOFF Ctrl-S */
39 #define DC3   19
40 #define DC4   20        /* Ctrl-T */
41 #define NAK   21        /* Ctrl-U */
42 #define SYN   22        /* SYN, Ctrl-V */
43 #define ETB   23        /* Ctrl-W */
44 #define CAN   24        /* CAN, Ctrl-X */
45 #define XEM   25        /* Ctrl-Y (was EM but conflicts with OpenSSL) */
46 #define SUB   26        /* SUB Ctrl-Z */
47 #define ESC   27        /* Escape Ctrl-[ */
48 #define XFS   28        /* Field Separator,  Ctrl-Backslash */
49 #define XGS   29        /* Group Separator,  Ctrl-Rightbracket */
50 #define XRS   30        /* Record Separator, Ctrl-Circumflex */
51 #define US    31        /* Unit Separator,   Ctrl-Underscore */
52 #define SP    32        /* Space */
53 #define DEL  127        /* Delete (Rubout) */
54 #define RUB  127        /* Delete (Rubout) */
55
56 #ifdef OS2
57 /*
58   These are needed in OS/2, so let's not cause any unnecessary conflicts.
59 */
60 #define _CSI  0233      /* 8-bit Control Sequence Introducer */
61 #define _SS2  0216      /* 8-bit Single Shift 2 */
62 #define _SS3  0217      /* 8-bit Single Shift 3 */
63 #define _DCS  0220      /* 8-bit Device Control String Introducer */
64 #define _ST8  0234      /* 8-bit String Terminator */
65 #define _OSC  0235      /* 8-bit Operating System Command */
66 #define _PM8  0236      /* 8-bit Privacy Message */
67 #define _APC  0237      /* 8-bit Application Program Command */
68 #endif /* OS2 */
69 #endif /* CKCASC_H */