Skip to content

Commit 015dc4e

Browse files
stty: add combination settings
1 parent 1675c3e commit 015dc4e

File tree

3 files changed

+531
-6
lines changed

3 files changed

+531
-6
lines changed

src/uu/stty/src/flags.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// spell-checker:ignore isig icanon iexten echoe crterase echok echonl noflsh xcase tostop echoprt prterase echoctl ctlecho echoke crtkill flusho extproc
1010
// spell-checker:ignore lnext rprnt susp swtch vdiscard veof veol verase vintr vkill vlnext vquit vreprint vstart vstop vsusp vswtc vwerase werase
1111
// spell-checker:ignore sigquit sigtstp
12+
// spell-checker:ignore cbreak decctlq evenp litout oddp
1213

1314
use crate::Flag;
1415

@@ -372,3 +373,23 @@ pub const CONTROL_CHARS: &[(&str, S)] = &[
372373
// Discards the current line.
373374
("discard", S::VDISCARD),
374375
];
376+
377+
/// This constant lists all possible combination settings, using a bool to represent if the setting is negatable
378+
pub const COMBINATION_SETTINGS: &[(&str, bool)] = &[
379+
("LCASE", true),
380+
("lcase", true),
381+
("cbreak", true),
382+
("cooked", true),
383+
("crt", false),
384+
("dec", false),
385+
("decctlq", true),
386+
("ek", false),
387+
("evenp", true),
388+
("litout", true),
389+
("nl", true),
390+
("oddp", true),
391+
("parity", true),
392+
("pass8", true),
393+
("raw", true),
394+
("sane", false),
395+
];

0 commit comments

Comments
 (0)