about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-07-30 03:10:22 -0400
committerJune McEnroe <programble@gmail.com>2017-07-30 03:10:22 -0400
commitc707d3c29f44a79cb269d90bfe53bec8d8705a5e (patch)
treefd35b79bcaa5efa61ada785d81709b9fe055e54c
parentAdd README (diff)
downloadtorus-c707d3c29f44a79cb269d90bfe53bec8d8705a5e.tar.gz
torus-c707d3c29f44a79cb269d90bfe53bec8d8705a5e.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: