From f9c2dd1b4b6acfcb9cc3d9e69e177e1d9d2597d6 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 30 Jul 2017 03:10:22 -0400 Subject: Add termcap patch --- README | 6 ++++++ termcap.diff | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 termcap.diff 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: -- cgit 1.4.1