about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-30 03:10:22 -0400
committerJune McEnroe <june@causal.agency>2017-07-30 03:10:22 -0400
commitf9c2dd1b4b6acfcb9cc3d9e69e177e1d9d2597d6 (patch)
tree0cd25d71709b11bbc9a0a7d694315bacb1873708
parentAdd README (diff)
downloadtorus-f9c2dd1b4b6acfcb9cc3d9e69e177e1d9d2597d6.tar.gz
torus-f9c2dd1b4b6acfcb9cc3d9e69e177e1d9d2597d6.zip
Add termcap patch
-rw-r--r--README6
-rw-r--r--termcap.diff12
2 files changed, 18 insertions, 0 deletions
diff --git a/README b/README
index 954c12c..06c851e 100644
--- a/README
+++ b/README
@@ -8,3 +8,9 @@ C source files are self-compiling, e.g. ./server.c.
     server.c       Maps torus.dat and listens on torus.sock.
     client.c       Curses client.
     help.c         Automated client which redraws a helpful banner.
+
+On FreeBSD with TERM=xterm-256color, the client fails to display bright
+colors. Applying termcap.diff sets it equivalent to TERM=xterm.
+
+    patch -p0 -o termcap < termcap.diff
+    cap_mkdb termcap
diff --git a/termcap.diff b/termcap.diff
new file mode 100644
index 0000000..c6048cb
--- /dev/null
+++ b/termcap.diff
@@ -0,0 +1,12 @@
+--- /usr/share/misc/termcap	2017-07-29 16:46:57.370274000 +0000
++++ termcap	2017-07-30 00:12:33.996614000 +0000
+@@ -2882,8 +2882,7 @@
+ 	:Co#88:pa#7744:tc=xterm-256color:
+ 
+ xterm-256color|xterm alias 3:\
+-	:Co#256:pa#32767:\
+-	:AB=\E[48;5;%dm:AF=\E[38;5;%dm:tc=xterm-new:
++	:tc=xterm-new:
+ 
+ xterm-nrc|xterm alias 4:\
+ 	:tc=xterm: