Fix generating terminfo on NetBSD
.terminfo.cdb is the compiled terminfo database file. Ensure that both .terminfo (dir) and .terminfo.cdb are generated.
This commit is contained in:
parent
f99edbae3c
commit
6638546247
@ -88,12 +88,20 @@ mv_files_and_dirs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compile_terminfo() {
|
compile_terminfo() {
|
||||||
# export TERMINFO
|
|
||||||
tname=".terminfo"
|
tname=".terminfo"
|
||||||
|
# Ensure the 78 dir is present
|
||||||
|
if [ ! -f "$1/$tname/78/xterm-kitty" ]; then
|
||||||
|
command mkdir -p "$1/$tname/78"
|
||||||
|
command ln -sf "../x/xterm-kitty" "$1/$tname/78/xterm-kitty"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "/usr/share/misc/terminfo.cdb" ]; then
|
if [ -e "/usr/share/misc/terminfo.cdb" ]; then
|
||||||
# NetBSD requires this see https://github.com/kovidgoyal/kitty/issues/4622
|
# NetBSD requires this file, see https://github.com/kovidgoyal/kitty/issues/4622
|
||||||
|
command ln -sf "../../.terminfo.cdb" "$1/$tname/x/xterm-kitty"
|
||||||
tname=".terminfo.cdb"
|
tname=".terminfo.cdb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# export TERMINFO
|
||||||
export TERMINFO="$HOME/$tname"
|
export TERMINFO="$HOME/$tname"
|
||||||
|
|
||||||
# compile terminfo for this system
|
# compile terminfo for this system
|
||||||
@ -101,12 +109,6 @@ compile_terminfo() {
|
|||||||
tic_out=$(command tic -x -o "$1/$tname" "$1/.terminfo/kitty.terminfo" 2>&1)
|
tic_out=$(command tic -x -o "$1/$tname" "$1/.terminfo/kitty.terminfo" 2>&1)
|
||||||
[ $? = 0 ] || die "Failed to compile terminfo with err: $tic_out"
|
[ $? = 0 ] || die "Failed to compile terminfo with err: $tic_out"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure the 78 dir is present
|
|
||||||
if [ ! -f "$1/$tname/78/xterm-kitty" ]; then
|
|
||||||
command mkdir -p "$1/$tname/78"
|
|
||||||
command ln -sf "../x/xterm-kitty" "$1/$tname/78/xterm-kitty"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
read_base64_from_tty() {
|
read_base64_from_tty() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user