diff options
author | Colin Leitner <colin.leitner@googlemail.com> | 2013-11-16 12:14:18 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-11-17 12:26:12 +0000 |
commit | 4e37fc642f6dfda7b7d78531420355c9ad3a824d (patch) | |
tree | f28050354c4635bd0d4a3b63997289367eca61e7 /src | |
parent | 91208453756bf0e86e25c2db35e481ac178f1255 (diff) | |
download | coreutils-4e37fc642f6dfda7b7d78531420355c9ad3a824d.tar.xz |
stty: add support for mark/space parity
This adds support for using a constant or "stick" parity bit.
* src/stty.c (usage): Mention the new flag.
* tests/misc/stty.sh: Adjust for the new flag.
* NEWS: Mention the improvement.
* docs/coreutils.texi (stty invocation): Mention the new flag.
Diffstat (limited to 'src')
-rw-r--r-- | src/stty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c index e518839d5..c95217e88 100644 --- a/src/stty.c +++ b/src/stty.c @@ -205,6 +205,9 @@ static struct mode_info const mode_info[] = { {"parenb", control, REV, PARENB, 0}, {"parodd", control, REV, PARODD, 0}, +#ifdef CMSPAR + {"cmspar", control, REV, CMSPAR, 0}, +#endif {"cs5", control, 0, CS5, CSIZE}, {"cs6", control, 0, CS6, CSIZE}, {"cs7", control, 0, CS7, CSIZE}, @@ -593,6 +596,7 @@ Control settings:\n\ [-]hupcl same as [-]hup\n\ [-]parenb generate parity bit in output and expect parity bit in input\n\ [-]parodd set odd parity (or even parity with '-')\n\ + * [-]cmspar use \"stick\" (mark/space) parity\n\ "), stdout); fputs (_("\ \n\ |