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