Support VEOL2 and VSTATUS

This commit is contained in:
christos 2005-05-21 17:18:51 +00:00
parent c28a42708d
commit 057e8f6aa6
4 changed files with 20 additions and 12 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: gettytab.5,v 1.31 2003/08/07 09:46:42 agc Exp $
.\" $NetBSD: gettytab.5,v 1.32 2005/05/21 17:18:51 christos Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" from: @(#)gettytab.5 8.4 (Berkeley) 4/19/94
.\"
.Dd May 20, 2003
.Dd May 21, 2005
.Dt GETTYTAB 5
.Os
.Sh NAME
@ -81,6 +81,7 @@ table.
.It "al str NULL user to auto-login instead of prompting"
.It "ap bool false terminal uses any parity"
.It "bk str 0377 alternative end of line character (input break)"
.It "b2 str 0377 alternative end of line character (input break)"
.It "c0 num unused tty control flags to write messages"
.It "c1 num unused tty control flags to read login name"
.It "c2 num unused tty control flags to leave terminal as"
@ -167,6 +168,8 @@ port selector
.Tn NOT
use raw for input, use cbreak
.It "sp num unused line speed (input and output)"
.It "st str" Ta So Li ^T Sc Ta
.No "status character"
.It "su str" Ta So Li ^Z Sc Ta
.No "suspend character"
.It "tc str none table continuation"

View File

@ -1,4 +1,4 @@
/* $NetBSD: gettytab.h,v 1.14 2003/08/07 09:46:42 agc Exp $ */
/* $NetBSD: gettytab.h,v 1.15 2005/05/21 17:18:51 christos Exp $ */
/*
* Copyright (c) 1983, 1993, 1994
@ -86,9 +86,11 @@ struct gettyflags {
#define FL gettystrs[21].value
#define WE gettystrs[22].value
#define LN gettystrs[23].value
#define PP gettystrs[24].value
#define IF gettystrs[25].value
#define AL gettystrs[26].value
#define ST gettystrs[24].value
#define B2 gettystrs[25].value
#define PP gettystrs[26].value
#define IF gettystrs[27].value
#define AL gettystrs[28].value
/*
* Numeric definitions.

View File

@ -1,4 +1,4 @@
/* $NetBSD: init.c,v 1.14 2003/08/07 09:46:42 agc Exp $ */
/* $NetBSD: init.c,v 1.15 2005/05/21 17:18:51 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)init.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: init.c,v 1.14 2003/08/07 09:46:42 agc Exp $");
__RCSID("$NetBSD: init.c,v 1.15 2005/05/21 17:18:51 christos Exp $");
#endif
#endif /* not lint */
@ -77,6 +77,8 @@ struct gettystrs gettystrs[] = {
{ "fl", &tmode.c_cc[VDISCARD] },/* flush output */
{ "we", &tmode.c_cc[VWERASE] }, /* word erase */
{ "ln", &tmode.c_cc[VLNEXT] }, /* literal next */
{ "st", &tmode.c_cc[VSTATUS] }, /* status */
{ "b2", &tmode.c_cc[VEOL2] }, /* alt brk char */
{ "pp" }, /* ppp login program */
{ "if" }, /* sysv-like 'issue' filename */
{ "al" }, /* user to auto-login */

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr.c,v 1.30 2004/04/23 21:04:25 christos Exp $ */
/* $NetBSD: subr.c,v 1.31 2005/05/21 17:18:51 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: subr.c,v 1.30 2004/04/23 21:04:25 christos Exp $");
__RCSID("$NetBSD: subr.c,v 1.31 2005/05/21 17:18:51 christos Exp $");
#endif
#endif /* not lint */
@ -148,7 +148,7 @@ setdefaults(void)
static char **
charnames[] = {
&ER, &KL, &IN, &QU, &XN, &XF, &ET, &BK,
&SU, &DS, &RP, &FL, &WE, &LN, 0
&SU, &DS, &RP, &FL, &WE, &LN, &ST, &B2, 0
};
static char *
@ -157,7 +157,8 @@ charvars[] = {
&tmode.c_cc[VQUIT], &tmode.c_cc[VSTART], &tmode.c_cc[VSTOP],
&tmode.c_cc[VEOF], &tmode.c_cc[VEOL], &tmode.c_cc[VSUSP],
&tmode.c_cc[VDSUSP], &tmode.c_cc[VREPRINT], &tmode.c_cc[VDISCARD],
&tmode.c_cc[VWERASE], &tmode.c_cc[VLNEXT], 0
&tmode.c_cc[VWERASE], &tmode.c_cc[VLNEXT], &tmode.c_cc[VSTATUS],
&tmode.c_cc[VEOL2], 0
};
void