aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-01-24 16:36:15 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-01-24 16:36:15 +0100
commit271c0ce379be4b59d28e17f4774f5a078e77f64b (patch)
treeeabbfabf672fa65e02bd7c9a5e2eabf6f39f34a6 /coreutils/stty.c
parentfaaf8cb3faf413485f2ea1bb3656ac40cb48b785 (diff)
downloadbusybox-w32-271c0ce379be4b59d28e17f4774f5a078e77f64b.tar.gz
busybox-w32-271c0ce379be4b59d28e17f4774f5a078e77f64b.tar.bz2
busybox-w32-271c0ce379be4b59d28e17f4774f5a078e77f64b.zip
stty: make swtch and iutf8 visible/settable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r--coreutils/stty.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index e28e15c97..25c00d1a5 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -59,6 +59,10 @@
59#if defined(VEOL2) && !defined(CEOL2) 59#if defined(VEOL2) && !defined(CEOL2)
60# define CEOL2 _POSIX_VDISABLE 60# define CEOL2 _POSIX_VDISABLE
61#endif 61#endif
62/* glibc-2.12.1 uses only VSWTC name */
63#if defined(VSWTC) && !defined(VSWTCH)
64# define VSWTCH VSWTC
65#endif
62/* ISC renamed swtch to susp for termios, but we'll accept either name */ 66/* ISC renamed swtch to susp for termios, but we'll accept either name */
63#if defined(VSUSP) && !defined(VSWTCH) 67#if defined(VSUSP) && !defined(VSWTCH)
64# define VSWTCH VSUSP 68# define VSWTCH VSUSP
@@ -221,6 +225,9 @@
221#ifndef XCASE 225#ifndef XCASE
222# define XCASE 0 226# define XCASE 0
223#endif 227#endif
228#ifndef IUTF8
229# define IUTF8 0
230#endif
224 231
225/* Which speeds to set */ 232/* Which speeds to set */
226enum speed_setting { 233enum speed_setting {
@@ -348,6 +355,9 @@ static const char mode_name[] =
348#if IMAXBEL 355#if IMAXBEL
349 MI_ENTRY("imaxbel", input, SANE_SET | REV, IMAXBEL, 0 ) 356 MI_ENTRY("imaxbel", input, SANE_SET | REV, IMAXBEL, 0 )
350#endif 357#endif
358#if IUTF8
359 MI_ENTRY("iutf8", input, SANE_UNSET | REV, IUTF8, 0 )
360#endif
351 MI_ENTRY("opost", output, SANE_SET | REV, OPOST, 0 ) 361 MI_ENTRY("opost", output, SANE_SET | REV, OPOST, 0 )
352#if OLCUC 362#if OLCUC
353 MI_ENTRY("olcuc", output, SANE_UNSET | REV, OLCUC, 0 ) 363 MI_ENTRY("olcuc", output, SANE_UNSET | REV, OLCUC, 0 )
@@ -502,6 +512,9 @@ static const struct mode_info mode_info[] = {
502#if IMAXBEL 512#if IMAXBEL
503 MI_ENTRY("imaxbel", input, SANE_SET | REV, IMAXBEL, 0 ) 513 MI_ENTRY("imaxbel", input, SANE_SET | REV, IMAXBEL, 0 )
504#endif 514#endif
515#if IUTF8
516 MI_ENTRY("iutf8", input, SANE_UNSET | REV, IUTF8, 0 )
517#endif
505 MI_ENTRY("opost", output, SANE_SET | REV, OPOST, 0 ) 518 MI_ENTRY("opost", output, SANE_SET | REV, OPOST, 0 )
506#if OLCUC 519#if OLCUC
507 MI_ENTRY("olcuc", output, SANE_UNSET | REV, OLCUC, 0 ) 520 MI_ENTRY("olcuc", output, SANE_UNSET | REV, OLCUC, 0 )