Skip to content

Commit 53a6ef5

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 16f37a9 commit 53a6ef5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/uu/stty/src/flags.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)