summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-11-13 05:54:55 +0000
committered <ed@FreeBSD.org>2009-11-13 05:54:55 +0000
commitf49c0a7c600c8c62878936032e4c44846070a9b6 (patch)
tree6e11d518cb9008f7a76b1c206c21c622e2874f34 /sys/conf
parent6be882dd7a15b655a994c3205f67ef9393bd866e (diff)
downloadFreeBSD-src-f49c0a7c600c8c62878936032e4c44846070a9b6.zip
FreeBSD-src-f49c0a7c600c8c62878936032e4c44846070a9b6.tar.gz
Switch the default terminal emulation style to xterm for most platforms.
Right now syscons(4) uses a cons25-style terminal emulator. The disadvantages of that are: - Little compatibility with embedded devices with serial interfaces. - Bad bandwidth efficiency, mainly because of the lack of scrolling regions. - A very hard transition path to support for modern character sets like UTF-8. Our terminal emulation library, libteken, has been supporting xterm-style terminal emulation for months, so flip the switch and make everyone use an xterm-style console driver. I still have to enable this on i386. Right now pc98 and i386 share the same /etc/ttys file. I'm not going to switch pc98, because it uses its own Kanji-capable cons25 emulator. IMPORTANT: What to do if things go wrong (i.e. graphical artifacts): - Run the application inside script(1), try to reduce the problem and send me the log file. - In the mean time, you can run `vidcontrol -T cons25' and `export TERM=cons25' so you can run applications the same way you did before. You can also build your kernel with `options TEKEN_CONS25' to make all virtual terminals use the cons25 emulator by default. Discussed on: current@
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/NOTES3
-rw-r--r--sys/conf/options1
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index a5b5f5d..d2059a4 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -1410,8 +1410,9 @@ options SC_NO_SUSPEND_VTYSWITCH
# 0x100 Probe for a keyboard device periodically if one is not present
# Enable experimental features of the syscons terminal emulator (teken).
+options TEKEN_CONS25 # cons25-style terminal emulation
options TEKEN_UTF8 # UTF-8 output handling
-options TEKEN_XTERM # xterm-style terminal emulation
+#options TEKEN_XTERM # xterm-style terminal emulation
#
# Optional devices:
diff --git a/sys/conf/options b/sys/conf/options
index dc35aa0..9c1dc7d 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -732,6 +732,7 @@ SC_RENDER_DEBUG opt_syscons.h
SC_TWOBUTTON_MOUSE opt_syscons.h
# teken terminal emulator options
+TEKEN_CONS25 opt_teken.h
TEKEN_UTF8 opt_teken.h
TEKEN_XTERM opt_teken.h
OpenPOWER on IntegriCloud