113794Ssam #ifndef lint 2*13885Ssam static char sccsid[] = "@(#)init.c 4.4 (Berkeley) 83/07/09"; 313794Ssam #endif 413794Ssam 513794Ssam /* 613794Ssam * Getty table initializations. 713794Ssam * 813794Ssam * Melbourne getty. 913794Ssam */ 1013794Ssam #include <sgtty.h> 1113794Ssam #include "gettytab.h" 1213794Ssam 1313794Ssam extern struct sgttyb tmode; 1413794Ssam extern struct tchars tc; 1513794Ssam extern struct ltchars ltc; 1613794Ssam extern char hostname[]; 1713794Ssam 1813794Ssam struct gettystrs gettystrs[] = { 1913875Ssam { "nx" }, /* next table */ 2013794Ssam { "cl" }, /* screen clear characters */ 2113794Ssam { "im" }, /* initial message */ 2213794Ssam { "lm", "login: " }, /* login message */ 2313794Ssam { "er", &tmode.sg_erase }, /* erase character */ 2413794Ssam { "kl", &tmode.sg_kill }, /* kill character */ 2513794Ssam { "et", &tc.t_eofc }, /* eof chatacter (eot) */ 2613794Ssam { "pc", "" }, /* pad character */ 2713794Ssam { "tt" }, /* terminal type */ 2813794Ssam { "ev" }, /* enviroment */ 2913794Ssam { "lo", "/bin/login" }, /* login program */ 3013794Ssam { "hn", hostname }, /* host name */ 3113794Ssam { "he" }, /* host name edit */ 3213794Ssam { "in", &tc.t_intrc }, /* interrupt char */ 3313794Ssam { "qu", &tc.t_quitc }, /* quit char */ 3413794Ssam { "xn", &tc.t_startc }, /* XON (start) char */ 3513794Ssam { "xf", &tc.t_stopc }, /* XOFF (stop) char */ 3613794Ssam { "bk", &tc.t_brkc }, /* brk char (alt \n) */ 3713794Ssam { "su", <c.t_suspc }, /* suspend char */ 3813794Ssam { "ds", <c.t_dsuspc }, /* delayed suspend */ 3913794Ssam { "rp", <c.t_rprntc }, /* reprint char */ 4013794Ssam { "fl", <c.t_flushc }, /* flush output */ 4113794Ssam { "we", <c.t_werasc }, /* word erase */ 4213794Ssam { "ln", <c.t_lnextc }, /* literal next */ 4313794Ssam { 0 } 4413794Ssam }; 4513794Ssam 4613794Ssam struct gettynums gettynums[] = { 4713794Ssam { "is" }, /* input speed */ 4813794Ssam { "os" }, /* output speed */ 4913794Ssam { "sp" }, /* both speeds */ 5013794Ssam { "nd" }, /* newline delay */ 5113794Ssam { "cd" }, /* carriage-return delay */ 5213794Ssam { "td" }, /* tab delay */ 5313794Ssam { "fd" }, /* form-feed delay */ 5413794Ssam { "bd" }, /* backspace delay */ 5513794Ssam { "to" }, /* timeout */ 5613794Ssam { "f0" }, /* output flags */ 5713794Ssam { "f1" }, /* input flags */ 5813794Ssam { "f2" }, /* user mode flags */ 59*13885Ssam { "pf" }, /* delay before flush at 1st prompt */ 6013794Ssam { 0 } 6113794Ssam }; 6213794Ssam 6313794Ssam struct gettyflags gettyflags[] = { 6413794Ssam { "ht", 0 }, /* has tabs */ 6513794Ssam { "nl", 1 }, /* has newline char */ 6613794Ssam { "ep", 0 }, /* even parity */ 6713794Ssam { "op", 0 }, /* odd parity */ 6813794Ssam { "ap", 0 }, /* any parity */ 6913794Ssam { "ec", 1 }, /* no echo */ 7013794Ssam { "co", 0 }, /* console special */ 7113794Ssam { "cb", 0 }, /* crt backspace */ 7213794Ssam { "ck", 0 }, /* crt kill */ 7313794Ssam { "ce", 0 }, /* crt erase */ 7413794Ssam { "pe", 0 }, /* printer erase */ 7513794Ssam { "rw", 1 }, /* don't use raw */ 7613794Ssam { "xc", 1 }, /* don't ^X ctl chars */ 7713794Ssam { "lc", 0 }, /* terminal las lower case */ 7813794Ssam { "uc", 0 }, /* terminal has no lower case */ 7913794Ssam { "ig", 0 }, /* ignore garbage */ 8013794Ssam { "ps", 0 }, /* do port selector speed select */ 8113826Skre { "hc", 1 }, /* don't set hangup on close */ 8213826Skre { "ub", 0 }, /* unbuffered output */ 8313794Ssam { 0 } 8413794Ssam }; 85