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