diff options
author | David Greenman <dg@FreeBSD.org> | 2000-11-11 23:03:38 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 2000-11-11 23:03:38 +0000 |
commit | e61715de39af65bd575c31be9ffe8f77eb4614e8 (patch) | |
tree | c4bb92b8a951abea505b1c6fb1d1650a9d4924a7 /usr.bin/tset/set.c | |
parent | 8bcbe4b7a6866a7beccc068e01bb8915ea2593f3 (diff) | |
download | src-test2-e61715de39af65bd575c31be9ffe8f77eb4614e8.tar.gz src-test2-e61715de39af65bd575c31be9ffe8f77eb4614e8.zip |
Notes
Diffstat (limited to 'usr.bin/tset/set.c')
-rw-r--r-- | usr.bin/tset/set.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tset/set.c b/usr.bin/tset/set.c index e5c52cff08a3..515a87da16a5 100644 --- a/usr.bin/tset/set.c +++ b/usr.bin/tset/set.c @@ -169,19 +169,19 @@ set_control_chars() else bs_char = 0; - if (erasechar == 0 && bs_char != 0 && !tgetflag("os")) - erasechar = -1; - if (erasechar < 0) - erasechar = (bs_char != 0) ? bs_char : CTRL('h'); + if (erasech == 0 && bs_char != 0 && !tgetflag("os")) + erasech = -1; + if (erasech < 0) + erasech = (bs_char != 0) ? bs_char : CTRL('h'); - if (mode.c_cc[VERASE] == 0 || erasechar != 0) - mode.c_cc[VERASE] = erasechar ? erasechar : CERASE; + if (mode.c_cc[VERASE] == 0 || erasech != 0) + mode.c_cc[VERASE] = erasech ? erasech : CERASE; if (mode.c_cc[VINTR] == 0 || intrchar != 0) mode.c_cc[VINTR] = intrchar ? intrchar : CINTR; - if (mode.c_cc[VKILL] == 0 || killchar != 0) - mode.c_cc[VKILL] = killchar ? killchar : CKILL; + if (mode.c_cc[VKILL] == 0 || killch != 0) + mode.c_cc[VKILL] = killch ? killch : CKILL; } /* |