diff options
author | ed <ed@FreeBSD.org> | 2009-09-24 20:33:14 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-09-24 20:33:14 +0000 |
commit | 50a507dd226ccb61b6785f48da68631c519e3eab (patch) | |
tree | 10adb22648d6f5764175a79c52b7450b5f26d4ad /sys/teken/teken.c | |
parent | 3bdf7a1c805f2cea5e8c320bb2677e434ce97bfe (diff) | |
download | FreeBSD-src-50a507dd226ccb61b6785f48da68631c519e3eab.zip FreeBSD-src-50a507dd226ccb61b6785f48da68631c519e3eab.tar.gz |
Make SCS work in 8-bit mode.
This means we can finally do things like VT100 box drawing when using
Syscons (8-bit characters). As far as I know, the only remaining issue
is the absense of proper escape sequences for special keyboard
characters (cursor, F1 to F12, etc) and xterm emulation should be ready
for general use.
Enabling xterm would have the following advantages:
- Easier possible migration to Unicode. cons25 termcap entries are very
8-bit centric. They use things like CP437 characters for box drawing,
etc.
- Better support for SSH'ing to other operating systems/devices. Most
switches use VT100-style admin interfaces.
- Reduced bandwidth, because applications can now use things like
scrolling regions.
- You can finally use applications like dtach(1) on both the console and
inside an xterm.
Diffstat (limited to 'sys/teken/teken.c')
-rw-r--r-- | sys/teken/teken.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/teken/teken.c b/sys/teken/teken.c index da5c056..c928510 100644 --- a/sys/teken/teken.c +++ b/sys/teken/teken.c @@ -48,10 +48,6 @@ static FILE *df; #endif /* __FreeBSD__ && _KERNEL */ -#include "teken.h" -#include "teken_wcwidth.h" -#include "teken_scs.h" - /* Private flags for t_stateflags. */ #define TS_FIRSTDIGIT 0x01 /* First numeric digit in escape sequence. */ #define TS_INSERT 0x02 /* Insert mode. */ @@ -64,6 +60,10 @@ static FILE *df; /* Character that blanks a cell. */ #define BLANK ' ' +#include "teken.h" +#include "teken_wcwidth.h" +#include "teken_scs.h" + static teken_state_t teken_state_init; /* |