split term functions
This commit is contained in:
parent
5addb3ae5e
commit
6530af46f0
18
.config/zsh/lib/term.zsh
Normal file
18
.config/zsh/lib/term.zsh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/zsh
|
||||
|
||||
typeset -Uga ZSHU_TERM_MISSING
|
||||
|
||||
z-ti-test() {
|
||||
local r i
|
||||
r=0
|
||||
|
||||
for i ; do
|
||||
[ -z "$i" ] && continue
|
||||
if ! (( ${+terminfo[$i]} )) ; then
|
||||
ZSHU_TERM_MISSING+=( "$1" )
|
||||
r=1
|
||||
fi
|
||||
done
|
||||
|
||||
return $r
|
||||
}
|
@ -1,24 +1,8 @@
|
||||
#!/bin/zsh
|
||||
|
||||
typeset -Uga ZSHU_TERM_MISSING
|
||||
typeset -A ZSHU_TI_KEYS
|
||||
typeset -A ZSHU_FB_KEYS
|
||||
|
||||
z-ti-test() {
|
||||
local r i
|
||||
r=0
|
||||
|
||||
for i ; do
|
||||
[ -z "$i" ] && continue
|
||||
if ! (( ${+terminfo[$i]} )) ; then
|
||||
ZSHU_TERM_MISSING+=( "$1" )
|
||||
r=1
|
||||
fi
|
||||
done
|
||||
|
||||
return $r
|
||||
}
|
||||
|
||||
if z-ti-test smkx rmkx ; then
|
||||
zle-line-init() { emulate -L zsh ; echoti smkx ; }
|
||||
zle-line-finish() { emulate -L zsh ; echoti rmkx ; }
|
||||
|
Loading…
Reference in New Issue
Block a user