Skip to content

Commit a3408a7

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 f9fddd6 commit a3408a7

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

@@ -342,6 +342,18 @@ pub const CONTROL_CHARS: &[(&str, S)] = &[
342342
("stop", S::VSTOP),
343343
// Sends a suspend signal (SIGTSTP).
344344
("susp", S::VSUSP),
345+
#[cfg(any(
346+
target_os = "freebsd",
347+
target_os = "dragonfly",
348+
target_os = "ios",
349+
target_os = "macos",
350+
target_os = "netbsd",
351+
target_os = "openbsd",
352+
target_os = "aix",
353+
target_os = "solaris"
354+
))]
355+
// Sends a delayed suspend signal (SIGTSTP).
356+
("dsusp", S::VDSUSP),
345357
// Reprints the current line.
346358
("rprnt", S::VREPRINT),
347359
// Deletes the last word typed.

0 commit comments

Comments
 (0)