diff options
author | dd <dd@FreeBSD.org> | 2001-08-23 22:31:13 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-08-23 22:31:13 +0000 |
commit | b5c6e30e9c43329496d95c07d57bc79229bbc454 (patch) | |
tree | ade28a305737e30b832998c3b25bc73300196b14 /bin/stty/key.c | |
parent | 3700e539272561c4199cf4315fd3c8d20e75f1f5 (diff) | |
download | FreeBSD-src-b5c6e30e9c43329496d95c07d57bc79229bbc454.zip FreeBSD-src-b5c6e30e9c43329496d95c07d57bc79229bbc454.tar.gz |
Implement `stty ek` as documented.
PR: 24063
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
Diffstat (limited to 'bin/stty/key.c')
-rw-r--r-- | bin/stty/key.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c index e4caf6f..9a48f41 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -57,6 +57,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 *)); @@ -83,6 +84,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 }, @@ -184,6 +186,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; { |