2 * The routines in this file
3 * provide support for VT52 style terminals
4 * over a serial line. The serial I/O services are
5 * provided by routines in "termio.c". It compiles
6 * into nothing if not a VT52 style device. The
7 * bell on the VT52 is terrible, so the "beep"
8 * routine is conditionalized on defining BEL.
15 #define NROW 24 /* Screen size. */
16 #define NCOL 80 /* Edit if you want to. */
17 #define BIAS 0x20 /* Origin 0 coordinate bias. */
18 #define ESC 0x1B /* ESC character. */
19 #define BEL 0x07 /* ascii bell character */
21 extern int ttopen(); /* Forward references. */
26 extern int vt52move();
27 extern int vt52eeol();
28 extern int vt52eeop();
29 extern int vt52beep();
30 extern int vt52open();
33 * Dispatch table. All the
34 * hard fields just point into the
87 if ((cp
= getenv("TERM")) == NULL
) {
88 puts("Shell variable TERM not defined!");
91 if (strcmp(cp
, "vt52") != 0 && strcmp(cp
, "z19") != 0) {
92 puts("Terminal type not 'vt52'or 'z19' !");