stty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> -
stty -echo didn't work. Introduced by me :(
This commit is contained in:
parent
f8abc100cc
commit
21b080daa8
@ -1188,6 +1188,7 @@ end_option:
|
|||||||
mp = find_mode(arg+1);
|
mp = find_mode(arg+1);
|
||||||
if (mp) {
|
if (mp) {
|
||||||
set_mode(mp, 1 /* reversed */, &mode);
|
set_mode(mp, 1 /* reversed */, &mode);
|
||||||
|
require_set_attr = 1;
|
||||||
}
|
}
|
||||||
/* It is an option - already parsed. Skip it */
|
/* It is an option - already parsed. Skip it */
|
||||||
continue;
|
continue;
|
||||||
@ -1196,6 +1197,7 @@ end_option:
|
|||||||
mp = find_mode(arg);
|
mp = find_mode(arg);
|
||||||
if (mp) {
|
if (mp) {
|
||||||
set_mode(mp, 0 /* non-reversed */, &mode);
|
set_mode(mp, 0 /* non-reversed */, &mode);
|
||||||
|
require_set_attr = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1203,6 +1205,7 @@ end_option:
|
|||||||
if (cp) {
|
if (cp) {
|
||||||
++k;
|
++k;
|
||||||
set_control_char_or_die(cp, argnext, &mode);
|
set_control_char_or_die(cp, argnext, &mode);
|
||||||
|
require_set_attr = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user