summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/teken/sequences
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-01-20 11:34:28 +0000
committered <ed@FreeBSD.org>2009-01-20 11:34:28 +0000
commitb0ac3e6702ec12d4341b573e8e7ca09fdab66091 (patch)
tree6fbf3c838744f4073f214653424b62c333a289d0 /sys/dev/syscons/teken/sequences
parentac57d6e717c7b5921f7a8c6d60d1c846ea1d04d5 (diff)
downloadFreeBSD-src-b0ac3e6702ec12d4341b573e8e7ca09fdab66091.zip
FreeBSD-src-b0ac3e6702ec12d4341b573e8e7ca09fdab66091.tar.gz
Properly implement the VT100 SCS sequences in xterm-mode.
Even though VT100-like devices can display non-ASCII characters, they do not use an 8-bit character set. Special escape sequences allow the VT100 to switch character maps. The special graphics character set stores the box drawing characters, starting at 0x60, ending at 0x7e. This means we now pass the character map tests in vttest, even the save/restore cursor test, combined with character maps. dialog(1) also works a lot better now. This commit also includes some other minor fixes: - Default to 24 lines in teken_demo when using xterm emulation. - Make white foreground and background work in teken_demo.
Diffstat (limited to 'sys/dev/syscons/teken/sequences')
-rw-r--r--sys/dev/syscons/teken/sequences20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/syscons/teken/sequences b/sys/dev/syscons/teken/sequences
index 99aa226..59d3245 100644
--- a/sys/dev/syscons/teken/sequences
+++ b/sys/dev/syscons/teken/sequences
@@ -71,6 +71,16 @@ DSR Device Status Report ^[ [ ? n r
ECH Erase character ^[ [ X n
ED Erase display ^[ [ J r
EL Erase line ^[ [ K r
+G0SCS0 G0 SCS Special Graphics ^[ ( 0
+G0SCS1 G0 SCS US ASCII ^[ ( 1
+G0SCS2 G0 SCS Special Graphics ^[ ( 2
+G0SCSA G0 SCS UK National ^[ ( A
+G0SCSB G0 SCS US ASCII ^[ ( B
+G1SCS0 G1 SCS Special Graphics ^[ ) 0
+G1SCS1 G1 SCS US ASCII ^[ ) 1
+G1SCS2 G1 SCS Special Graphics ^[ ) 2
+G1SCSA G1 SCS UK National ^[ ) A
+G1SCSB G1 SCS US ASCII ^[ ) B
HPA Horizontal Position Absolute ^[ [ G n
HPA Horizontal Position Absolute ^[ [ ` n
HTS Horizontal Tab Set ^[ H
@@ -81,16 +91,6 @@ NEL Next line ^[ E
RI Reverse index ^[ M
RIS Reset to Initial State ^[ c
RM Reset Mode ^[ [ l r
-SCS SCS ^[ ( 0
-SCS SCS ^[ ( 1
-SCS SCS ^[ ( 2
-SCS SCS ^[ ( A
-SCS SCS ^[ ( B
-SCS SCS ^[ ) 0
-SCS SCS ^[ ) 1
-SCS SCS ^[ ) 2
-SCS SCS ^[ ) A
-SCS SCS ^[ ) B
SD Pan Up ^[ [ T n
SGR Set Graphic Rendition ^[ [ m v
SM Set Mode ^[ [ h r
OpenPOWER on IntegriCloud