summaryrefslogtreecommitdiffstats
path: root/freebsd/bin
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/bin')
-rw-r--r--freebsd/bin/stty/modes.c2
-rw-r--r--freebsd/bin/stty/print.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/bin/stty/modes.c b/freebsd/bin/stty/modes.c
index e1536d57..b75092e2 100644
--- a/freebsd/bin/stty/modes.c
+++ b/freebsd/bin/stty/modes.c
@@ -102,6 +102,8 @@ static const struct modes cmodes[] = {
{ "-rtsflow", 0, CRTS_IFLOW },
{ "mdmbuf", MDMBUF, 0 },
{ "-mdmbuf", 0, MDMBUF },
+ { "rtsdtr", 0, CNO_RTSDTR },
+ { "-rtsdtr", CNO_RTSDTR, 0 },
{ NULL, 0, 0 },
};
diff --git a/freebsd/bin/stty/print.c b/freebsd/bin/stty/print.c
index d60f4ea4..202b472b 100644
--- a/freebsd/bin/stty/print.c
+++ b/freebsd/bin/stty/print.c
@@ -195,6 +195,12 @@ print(struct termios *tp, struct winsize *wp, int ldisc, enum FMT fmt)
put("-dsrflow", CDSR_OFLOW, 0);
put("-dtrflow", CDTR_IFLOW, 0);
put("-mdmbuf", MDMBUF, 0); /* XXX mdmbuf == dtrflow */
+ if (on(CNO_RTSDTR))
+ bput("-rtsdtr");
+ else {
+ if (fmt >= BSD)
+ bput("rtsdtr");
+ }
/* special control characters */
cc = tp->c_cc;