Skip to content

Commit a2e35f3

Browse files
committed
stty/flags: Add delayed suspend (dsusp) support
It's only supported by BSD, aix and solaris, but still available in nix
1 parent 388152a commit a2e35f3

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/uu/stty/src/flags.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// spell-checker:ignore ignbrk brkint ignpar parmrk inpck istrip inlcr igncr icrnl ixoff ixon iuclc ixany imaxbel iutf
88
// spell-checker:ignore opost olcuc ocrnl onlcr onocr onlret ofdel nldly crdly tabdly bsdly vtdly ffdly
99
// spell-checker:ignore isig icanon iexten echoe crterase echok echonl noflsh xcase tostop echoprt prterase echoctl ctlecho echoke crtkill flusho extproc
10-
// spell-checker:ignore lnext rprnt susp swtch vdiscard veof veol verase vintr vkill vlnext vquit vreprint vstart vstop vsusp vswtc vwerase werase
10+
// spell-checker:ignore lnext rprnt susp dsusp swtch vdiscard veof veol verase vintr vkill vlnext vquit vreprint vstart vstop vsusp vswtc vwerase werase VDSUSP
1111
// spell-checker:ignore sigquit sigtstp
1212
// spell-checker:ignore cbreak decctlq evenp litout oddp
1313

@@ -357,6 +357,18 @@ pub const CONTROL_CHARS: &[(&str, S)] = &[
357357
("stop", S::VSTOP),
358358
// Sends a suspend signal (SIGTSTP).
359359
("susp", S::VSUSP),
360+
#[cfg(any(
361+
target_os = "freebsd",
362+
target_os = "dragonfly",
363+
target_os = "ios",
364+
target_os = "macos",
365+
target_os = "netbsd",
366+
target_os = "openbsd",
367+
target_os = "aix",
368+
target_os = "solaris"
369+
))]
370+
// Sends a delayed suspend signal (SIGTSTP).
371+
("dsusp", S::VDSUSP),
360372
// Reprints the current line.
361373
("rprnt", S::VREPRINT),
362374
// Deletes the last word typed.

0 commit comments

Comments
 (0)