diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-06-25 03:40:26 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-06-25 03:40:26 +0000 |
commit | c8214a448af7e1691e3129c6a980b8bfa234c6ff (patch) | |
tree | baa6e80c5aeca86d72fc547d3e831e80c40e5f1b /bin/stty/key.c | |
parent | 014bdece47a8733c5052403ed702db39b1099bb6 (diff) |
implement 'stty ek' as documented; dima@unixfreak.org
Diffstat (limited to 'bin/stty/key.c')
-rw-r--r-- | bin/stty/key.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c index b3f680304b6..a31e3c280a8 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.8 1997/08/24 06:49:30 deraadt Exp $ */ +/* $OpenBSD: key.c,v 1.9 2001/06/25 03:40:25 millert Exp $ */ /* $NetBSD: key.c,v 1.11 1995/09/07 06:57:11 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)key.c 8.4 (Berkeley) 2/20/95"; #else -static char rcsid[] = "$OpenBSD: key.c,v 1.8 1997/08/24 06:49:30 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: key.c,v 1.9 2001/06/25 03:40:25 millert Exp $"; #endif #endif /* not lint */ @@ -58,6 +58,7 @@ void f_all __P((struct info *)); void f_cbreak __P((struct info *)); void f_columns __P((struct info *)); void f_dec __P((struct info *)); +void f_ek __P((struct info *)); void f_everything __P((struct info *)); void f_extproc __P((struct info *)); void f_ispeed __P((struct info *)); @@ -87,6 +88,7 @@ static struct key { { "columns", f_columns, F_NEEDARG }, { "cooked", f_sane, 0 }, { "dec", f_dec, 0 }, + { "ek", f_ek, 0 }, { "everything", f_everything, 0 }, { "extproc", f_extproc, F_OFFOK }, { "ispeed", f_ispeed, F_NEEDARG }, @@ -191,6 +193,16 @@ f_dec(ip) } void +f_ek(ip) + struct info *ip; +{ + + ip->t.c_cc[VERASE] = CERASE; + ip->t.c_cc[VKILL] = CKILL; + ip->set = 1; +} + +void f_everything(ip) struct info *ip; { |