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