119060Sdist /* 2*61431Sbostic * Copyright (c) 1983, 1993 3*61431Sbostic * The Regents of the University of California. All rights reserved. 436929Sbostic * 542670Sbostic * %sccs.include.redist.c% 619060Sdist */ 719060Sdist 813794Ssam #ifndef lint 9*61431Sbostic static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 06/04/93"; 1036929Sbostic #endif /* not lint */ 1113794Ssam 1213794Ssam /* 1313794Ssam * Getty table initializations. 1413794Ssam * 1513794Ssam * Melbourne getty. 1613794Ssam */ 1713794Ssam #include <sgtty.h> 1813794Ssam #include "gettytab.h" 1937275Sbostic #include "pathnames.h" 2013794Ssam 2113794Ssam extern struct sgttyb tmode; 2213794Ssam extern struct tchars tc; 2313794Ssam extern struct ltchars ltc; 2413794Ssam extern char hostname[]; 2513794Ssam 2613794Ssam struct gettystrs gettystrs[] = { 2713875Ssam { "nx" }, /* next table */ 2813794Ssam { "cl" }, /* screen clear characters */ 2913794Ssam { "im" }, /* initial message */ 3013794Ssam { "lm", "login: " }, /* login message */ 3113794Ssam { "er", &tmode.sg_erase }, /* erase character */ 3213794Ssam { "kl", &tmode.sg_kill }, /* kill character */ 3313794Ssam { "et", &tc.t_eofc }, /* eof chatacter (eot) */ 3413794Ssam { "pc", "" }, /* pad character */ 3513794Ssam { "tt" }, /* terminal type */ 3613794Ssam { "ev" }, /* enviroment */ 3737275Sbostic { "lo", _PATH_LOGIN }, /* login program */ 3813794Ssam { "hn", hostname }, /* host name */ 3913794Ssam { "he" }, /* host name edit */ 4013794Ssam { "in", &tc.t_intrc }, /* interrupt char */ 4113794Ssam { "qu", &tc.t_quitc }, /* quit char */ 4213794Ssam { "xn", &tc.t_startc }, /* XON (start) char */ 4313794Ssam { "xf", &tc.t_stopc }, /* XOFF (stop) char */ 4413794Ssam { "bk", &tc.t_brkc }, /* brk char (alt \n) */ 4513794Ssam { "su", <c.t_suspc }, /* suspend char */ 4613794Ssam { "ds", <c.t_dsuspc }, /* delayed suspend */ 4713794Ssam { "rp", <c.t_rprntc }, /* reprint char */ 4813794Ssam { "fl", <c.t_flushc }, /* flush output */ 4913794Ssam { "we", <c.t_werasc }, /* word erase */ 5013794Ssam { "ln", <c.t_lnextc }, /* literal next */ 5113794Ssam { 0 } 5213794Ssam }; 5313794Ssam 5413794Ssam struct gettynums gettynums[] = { 5513794Ssam { "is" }, /* input speed */ 5613794Ssam { "os" }, /* output speed */ 5713794Ssam { "sp" }, /* both speeds */ 5813794Ssam { "nd" }, /* newline delay */ 5913794Ssam { "cd" }, /* carriage-return delay */ 6013794Ssam { "td" }, /* tab delay */ 6113794Ssam { "fd" }, /* form-feed delay */ 6213794Ssam { "bd" }, /* backspace delay */ 6313794Ssam { "to" }, /* timeout */ 6413794Ssam { "f0" }, /* output flags */ 6513794Ssam { "f1" }, /* input flags */ 6613794Ssam { "f2" }, /* user mode flags */ 6713885Ssam { "pf" }, /* delay before flush at 1st prompt */ 6813794Ssam { 0 } 6913794Ssam }; 7013794Ssam 7113794Ssam struct gettyflags gettyflags[] = { 7213794Ssam { "ht", 0 }, /* has tabs */ 7313794Ssam { "nl", 1 }, /* has newline char */ 7413794Ssam { "ep", 0 }, /* even parity */ 7513794Ssam { "op", 0 }, /* odd parity */ 7613794Ssam { "ap", 0 }, /* any parity */ 7713794Ssam { "ec", 1 }, /* no echo */ 7813794Ssam { "co", 0 }, /* console special */ 7913794Ssam { "cb", 0 }, /* crt backspace */ 8013794Ssam { "ck", 0 }, /* crt kill */ 8113794Ssam { "ce", 0 }, /* crt erase */ 8213794Ssam { "pe", 0 }, /* printer erase */ 8313794Ssam { "rw", 1 }, /* don't use raw */ 8413794Ssam { "xc", 1 }, /* don't ^X ctl chars */ 8513794Ssam { "lc", 0 }, /* terminal las lower case */ 8613794Ssam { "uc", 0 }, /* terminal has no lower case */ 8713794Ssam { "ig", 0 }, /* ignore garbage */ 8813794Ssam { "ps", 0 }, /* do port selector speed select */ 8913826Skre { "hc", 1 }, /* don't set hangup on close */ 9013826Skre { "ub", 0 }, /* unbuffered output */ 9117925Sralph { "ab", 0 }, /* auto-baud detect with '\r' */ 9225730Smckusick { "dx", 0 }, /* set decctlq */ 9347664Swilliam { "np", 0 }, /* no parity at all (8bit chars) */ 9413794Ssam { 0 } 9513794Ssam }; 96