mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 18:08:02 +02:00
Fix: image previews do not work in older kitty
In older versions KITTY_PID var is not set, so instead we TERM var
This commit is contained in:
parent
c54edbd235
commit
17392c5359
@ -19,7 +19,10 @@ noimages() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
is_kitty() {
|
is_kitty() {
|
||||||
[ -n "$KITTY_PID" ]
|
case "$TERM" in
|
||||||
|
*-kitty) return 0 ;;
|
||||||
|
*) return 1 ;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
kitty_clear() {
|
kitty_clear() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user