From 379776f6e3b349d7865f4280ff6bca90d359946e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 15 Sep 2013 01:46:09 +1200 Subject: Degrade TERM for OpenBSD systems --- sh/profile.d/openbsd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sh/profile.d/openbsd.sh (limited to 'sh') diff --git a/sh/profile.d/openbsd.sh b/sh/profile.d/openbsd.sh new file mode 100644 index 00000000..03e2217c --- /dev/null +++ b/sh/profile.d/openbsd.sh @@ -0,0 +1,9 @@ +# OpenBSD systems don't handle 256 color terminals the way my Linux systems do, +# seeming to be inconsistent about e.g. the correct number of parameters for +# `tput setaf ...` -- I don't know which of them is right but for the moment +# I'm siding with Linux. This chops off any -256color suffix to the terminal +# name. +if [ "$(uname -s)" = "OpenBSD" ]; then + TERM=${TERM%-256color} +fi + -- cgit v1.2.3