From 4b84062d66d395be290312053701e6d11cd3d9cc Mon Sep 17 00:00:00 2001 From: Ondřej Vašík Date: Tue, 5 Feb 2013 15:00:47 +0100 Subject: stty: add support for DTR/DSR hardware control flow Originally requested in Red Hat bugzilla #445213. * src/stty.c (mode_info): Add support for DTR/DSR hardware flow control, if available. * doc/coreutils.texi: Document it. * tests/misc/stty.sh: Add it to the list of serial options to avoid. * NEWS: Mention the improvement. --- src/stty.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/stty.c b/src/stty.c index fe0f22f8f..ee891a593 100644 --- a/src/stty.c +++ b/src/stty.c @@ -217,6 +217,9 @@ static struct mode_info const mode_info[] = #ifdef CRTSCTS {"crtscts", control, REV, CRTSCTS, 0}, #endif +#ifdef CDTRDSR + {"cdtrdsr", control, REV, CDTRDSR, 0}, +#endif {"ignbrk", input, SANE_UNSET | REV, IGNBRK, 0}, {"brkint", input, SANE_SET | REV, BRKINT, 0}, @@ -581,6 +584,7 @@ Control settings:\n\ [-]clocal disable modem control signals\n\ [-]cread allow input to be received\n\ * [-]crtscts enable RTS/CTS handshaking\n\ + * [-]cdtrdsr enable DTR/DSR handshaking\n\ csN set character size to N bits, N in [5..8]\n\ "), stdout); fputs (_("\ -- cgit v1.2.3-54-g00ecf