diff options
author | Jim Meyering <jim@meyering.net> | 1994-09-08 04:48:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-09-08 04:48:40 +0000 |
commit | 00dceaff2edd1c6ee2d2b12454decddada6f7a09 (patch) | |
tree | cd7f4f42826706b549c82f41464faa76b988f851 /src/stty.c | |
parent | 556b9f622fa00fb142496ff03d7d6b7fd66a793c (diff) | |
download | coreutils-00dceaff2edd1c6ee2d2b12454decddada6f7a09.tar.xz |
merge with 1.10i
Diffstat (limited to 'src/stty.c')
-rw-r--r-- | src/stty.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c index b75caf8cc..2663cf4a3 100644 --- a/src/stty.c +++ b/src/stty.c @@ -271,6 +271,10 @@ static struct mode_info mode_info[] = {"tab2", output, SANE_UNSET, TAB2, TABDLY}, {"tab1", output, SANE_UNSET, TAB1, TABDLY}, {"tab0", output, SANE_SET, TAB0, TABDLY}, +#else +#ifdef OXTABS + {"tab3", output, SANE_UNSET, OXTABS, 0}, +#endif #endif #ifdef BSDLY {"bs1", output, SANE_UNSET, BS1, BSDLY}, @@ -329,7 +333,7 @@ static struct mode_info mode_info[] = #ifdef IXANY {"decctlq", combination, REV | OMIT, 0, 0}, #endif -#ifdef TABDLY +#if defined (TABDLY) || defined (OXTABS) {"tabs", combination, REV | OMIT, 0, 0}, #endif #if defined(XCASE) && defined(IUCLC) && defined(OLCUC) @@ -1063,6 +1067,16 @@ set_mode (info, reversed, mode) else mode->c_oflag = (mode->c_oflag & ~TABDLY) | TAB0; } +#else +#ifdef OXTABS + else if (!strcmp (info->name, "tabs")) + { + if (reversed) + mode->c_oflag = mode->c_oflag | OXTABS; + else + mode->c_oflag = mode->c_oflag & ~OXTABS; + } +#endif #endif #if defined(XCASE) && defined(IUCLC) && defined(OLCUC) else if (!strcmp (info->name, "lcase") |