diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-11-02 21:46:32 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-02 21:46:32 +0400 |
commit | bcf42e2effdd4b501bcb0c50df10ce29bcf281c7 (patch) | |
tree | 8438d436a5db2773a883769dd30ba7b0068bcb16 /debian/patches/ttydefaults.patch | |
parent | 4906b90a2d0a1ff40584a98f4c31a67585355d58 (diff) | |
download | util-linux-master.tar.gz |
Diffstat (limited to 'debian/patches/ttydefaults.patch')
-rw-r--r-- | debian/patches/ttydefaults.patch | 44 |
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 */ |