mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-02-17 19:10:46 +01: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() {
|
||||
[ -n "$KITTY_PID" ]
|
||||
case "$TERM" in
|
||||
*-kitty) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
kitty_clear() {
|
||||
|
Loading…
Reference in New Issue
Block a user