aboutsummaryrefslogtreecommitdiff
path: root/bin/stty
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>2000-11-28 19:48:06 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>2000-11-28 19:48:06 +0000
commit4660b1416d894e117fa139787db705732069669d (patch)
tree380d37f450c76620aeccb7865a79de0ea2984114 /bin/stty
parent576ccb5693e71fbd36859aaf9b39251137bd13ef (diff)
downloadsrc-4660b1416d894e117fa139787db705732069669d.tar.gz
src-4660b1416d894e117fa139787db705732069669d.zip
Add support for an "erase2" so that both ^H and DEL can be used
for backspacing. Submitted By: Rui Pedro Mendes Salgueiro <rps@mat.uc.pt>
Notes
Notes: svn path=/head/; revision=69321
Diffstat (limited to 'bin/stty')
-rw-r--r--bin/stty/cchar.c1
-rw-r--r--bin/stty/stty.14
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/stty/cchar.c b/bin/stty/cchar.c
index 847cf749e0ac..b7a2128c7b1b 100644
--- a/bin/stty/cchar.c
+++ b/bin/stty/cchar.c
@@ -64,6 +64,7 @@ struct cchar cchars1[] = {
{ "eol", VEOL, CEOL },
{ "eol2", VEOL2, CEOL },
{ "erase", VERASE, CERASE },
+ { "erase2", VERASE2, CERASE2 },
{ "intr", VINTR, CINTR },
{ "kill", VKILL, CKILL },
{ "lnext", VLNEXT, CLNEXT },
diff --git a/bin/stty/stty.1 b/bin/stty/stty.1
index 7a4bed8a7947..733bf28bfefb 100644
--- a/bin/stty/stty.1
+++ b/bin/stty/stty.1
@@ -374,6 +374,7 @@ Recognized control-characters:
.It eol Ta Tn VEOL EOL No character
.It eol2 Ta Tn VEOL2 EOL2 No character
.It erase Ta Tn VERASE ERASE No character
+.It erase2 Ta Tn VERASE2 ERASE2 No character
.It werase Ta Tn VWERASE WERASE No character
.It intr Ta Tn VINTR INTR No character
.It kill Ta Tn VKILL KILL No character
@@ -420,7 +421,8 @@ In addition
-nl unsets inlcr and igncr.
.It Cm ek
Reset
-.Dv ERASE
+.Dv ERASE ,
+.Dv ERASE2 ,
and
.Dv KILL
characters