summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-12-16 17:18:43 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-12-16 17:18:43 +0000
commitf18ac661854f08404d12a32e012afef09d31c814 (patch)
tree7a067f2e9fb7d05a0bbd583c3bd12c4af5a522ba /tty.c
parentda22fafed51aefc671b17ae63898a250d5b82a4b (diff)
Quick start section in man page.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 13940040..e8d54764 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.16 2007-12-10 07:58:00 nicm Exp $ */
+/* $Id: tty.c,v 1.17 2007-12-16 17:18:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -93,9 +93,11 @@ tty_open(struct tty *tty, char **cause)
if (tcsetattr(tty->fd, TCSANOW, &tio) != 0)
fatal("tcsetattr failed");
+#ifdef TIOCFLUSH
what = 0;
if (ioctl(tty->fd, TIOCFLUSH, &what) != 0)
fatal("ioctl(TIOCFLUSH)");
+#endif
if (enter_ca_mode != NULL)
tty_puts(tty, enter_ca_mode);