|
|
1.1 root 1: #ifndef lint
2: static char sccsid[] = "@(#)init.c 4.4 (Berkeley) 83/07/09";
3: #endif
4:
5: /*
6: * Getty table initializations.
7: *
8: * Melbourne getty.
9: */
10: #include <sgtty.h>
11: #include "gettytab.h"
12:
13: extern struct sgttyb tmode;
14: extern struct tchars tc;
15: extern struct ltchars ltc;
16: extern char hostname[];
17:
18: struct gettystrs gettystrs[] = {
19: { "nx" }, /* next table */
20: { "cl" }, /* screen clear characters */
21: { "im" }, /* initial message */
22: { "lm", "login: " }, /* login message */
23: { "er", &tmode.sg_erase }, /* erase character */
24: { "kl", &tmode.sg_kill }, /* kill character */
25: { "et", &tc.t_eofc }, /* eof chatacter (eot) */
26: { "pc", "" }, /* pad character */
27: { "tt" }, /* terminal type */
28: { "ev" }, /* enviroment */
29: { "lo", "/bin/login" }, /* login program */
30: { "hn", hostname }, /* host name */
31: { "he" }, /* host name edit */
32: { "in", &tc.t_intrc }, /* interrupt char */
33: { "qu", &tc.t_quitc }, /* quit char */
34: { "xn", &tc.t_startc }, /* XON (start) char */
35: { "xf", &tc.t_stopc }, /* XOFF (stop) char */
36: { "bk", &tc.t_brkc }, /* brk char (alt \n) */
37: { "su", <c.t_suspc }, /* suspend char */
38: { "ds", <c.t_dsuspc }, /* delayed suspend */
39: { "rp", <c.t_rprntc }, /* reprint char */
40: { "fl", <c.t_flushc }, /* flush output */
41: { "we", <c.t_werasc }, /* word erase */
42: { "ln", <c.t_lnextc }, /* literal next */
43: { 0 }
44: };
45:
46: struct gettynums gettynums[] = {
47: { "is" }, /* input speed */
48: { "os" }, /* output speed */
49: { "sp" }, /* both speeds */
50: { "nd" }, /* newline delay */
51: { "cd" }, /* carriage-return delay */
52: { "td" }, /* tab delay */
53: { "fd" }, /* form-feed delay */
54: { "bd" }, /* backspace delay */
55: { "to" }, /* timeout */
56: { "f0" }, /* output flags */
57: { "f1" }, /* input flags */
58: { "f2" }, /* user mode flags */
59: { "pf" }, /* delay before flush at 1st prompt */
60: { 0 }
61: };
62:
63: struct gettyflags gettyflags[] = {
64: { "ht", 0 }, /* has tabs */
65: { "nl", 1 }, /* has newline char */
66: { "ep", 0 }, /* even parity */
67: { "op", 0 }, /* odd parity */
68: { "ap", 0 }, /* any parity */
69: { "ec", 1 }, /* no echo */
70: { "co", 0 }, /* console special */
71: { "cb", 0 }, /* crt backspace */
72: { "ck", 0 }, /* crt kill */
73: { "ce", 0 }, /* crt erase */
74: { "pe", 0 }, /* printer erase */
75: { "rw", 1 }, /* don't use raw */
76: { "xc", 1 }, /* don't ^X ctl chars */
77: { "lc", 0 }, /* terminal las lower case */
78: { "uc", 0 }, /* terminal has no lower case */
79: { "ig", 0 }, /* ignore garbage */
80: { "ps", 0 }, /* do port selector speed select */
81: { "hc", 1 }, /* don't set hangup on close */
82: { "ub", 0 }, /* unbuffered output */
83: { 0 }
84: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.