-#define TS_TIMEOUT 000001 /* delay timeout in progress */
-#define TS_WOPEN 000002 /* waiting for open to complete */
-#define TS_ISOPEN 000004 /* device is open */
-#define TS_FLUSH 000010 /* outq has been flushed during DMA */
-#define TS_CARR_ON 000020 /* software copy of carrier-present */
-#define TS_BUSY 000040 /* output in progress */
-#define TS_ASLEEP 000100 /* wakeup when output done */
-#define TS_XCLUDE 000200 /* exclusive-use flag against open */
-#define TS_TTSTOP 000400 /* output stopped by ctl-s */
-#define TS_HUPCLS 001000 /* hang up upon last close */
-#define TS_TBLOCK 002000 /* tandem queue blocked */
-#define TS_RCOLL 004000 /* collision in read select */
-#define TS_WCOLL 010000 /* collision in write select */
-#define TS_NBIO 020000 /* tty in non-blocking mode */
-#define TS_ASYNC 040000 /* tty in async i/o mode */
+#define TS_TIMEOUT 0x000001 /* delay timeout in progress */
+#define TS_WOPEN 0x000002 /* waiting for open to complete */
+#define TS_ISOPEN 0x000004 /* device is open */
+#define TS_FLUSH 0x000008 /* outq has been flushed during DMA */
+#define TS_CARR_ON 0x000010 /* software copy of carrier-present */
+#define TS_BUSY 0x000020 /* output in progress */
+#define TS_ASLEEP 0x000040 /* wakeup when output done */
+#define TS_XCLUDE 0x000080 /* exclusive-use flag against open */
+#define TS_TTSTOP 0x000100 /* output stopped by ctl-s */
+#define TS_HUPCLS 0x000200 /* hang up upon last close */
+#define TS_TBLOCK 0x000400 /* tandem queue blocked */
+#define TS_RCOLL 0x000800 /* collision in read select */
+#define TS_WCOLL 0x001000 /* collision in write select */
+#define TS_NBIO 0x002000 /* tty in non-blocking mode */
+#define TS_ASYNC 0x004000 /* tty in async i/o mode */
+/* state for intra-line fancy editing work */
+#define TS_BKSL 0x010000 /* state for lowercase \ work */
+#define TS_QUOT 0x020000 /* last character input was \ */
+#define TS_ERASE 0x040000 /* within a \.../ for PRTRUB */
+#define TS_LNCH 0x080000 /* next character is literal */
+#define TS_TYPEN 0x100000 /* retyping suspended input (PENDIN) */
+#define TS_CNTTB 0x200000 /* counting tab width; leave FLUSHO alone */
+
+#define TS_LOCAL (TS_BKSL|TS_QUOT|TS_ERASE|TS_LNCH|TS_TYPEN|TS_CNTTB)