Last active
August 9, 2024 13:42
-
-
Save xbb/c3eedebe57607bc91833f1a4018c3676 to your computer and use it in GitHub Desktop.
terminfo termcap update linux freebsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
NAMES=xterm,xterm-256color,screen,screen-256color,tmux,tmux-256color | |
if [ "$(uname -s)" = "FreeBSD" ]; then | |
curl -o /tmp/termcap.src https://raw.githubusercontent.com/freebsd/freebsd-src/main/share/termcap/termcap | |
cap_mkdb -vf /usr/share/misc/termcap /tmp/termcap.src | |
rm /tmp/termcap.src | |
else | |
curl -o /tmp/terminfo.src.gz https://invisible-island.net/datafiles/current/terminfo.src.gz | |
gunzip /tmp/terminfo.src.gz | |
tic -sx -e "$NAMES" /tmp/terminfo.src | |
rm /tmp/terminfo.src | |
fi | |
echo Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment