summaryrefslogtreecommitdiff
path: root/debian/patches/ttydefaults.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/ttydefaults.patch')
-rw-r--r--debian/patches/ttydefaults.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/ttydefaults.patch b/debian/patches/ttydefaults.patch
new file mode 100644
index 0000000..7e92943
--- /dev/null
+++ b/debian/patches/ttydefaults.patch
@@ -0,0 +1,44 @@
+Index: util-linux/include/ttyutils.h
+===================================================================
+--- util-linux.orig/include/ttyutils.h 2012-11-02 20:15:39.871976130 +0400
++++ util-linux/include/ttyutils.h 2012-11-02 21:44:01.195709745 +0400
+@@ -11,6 +11,39 @@
+ #define UL_TTY_KEEPCFLAGS (1 << 1)
+ #define UL_TTY_UTF8 (1 << 2)
+
++#ifndef OXTABS
++#ifdef XTABS /* SMI uses XTABS. */
++#define OXTABS XTABS
++#else
++#define OXTABS 0
++#endif
++#endif
++
++
++#ifndef TTYDEF_IFLAG
++#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
++#endif
++
++#ifndef TTYDEF_OFLAG
++#define TTYDEF_OFLAG (OPOST | ONLCR | OXTABS)
++#endif
++
++#ifndef TTYDEF_LFLAG
++#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE | ECHOKE | ECHOCTL)
++#endif
++
++#ifndef TTYDEF_CFLAG
++#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL)
++#endif
++
++#ifndef CDISCARD
++#define CDISCARD CTRL('o')
++#endif
++
++#ifndef CREPRINT
++#define CREPRINT CTRL('r')
++#endif
++
+ static inline void reset_virtual_console(struct termios *tp, int flags)
+ {
+ /* Use defaults of <sys/ttydefaults.h> for base settings */