mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
don't trust cnorm as it's incorrect in some combinations of terminals and terminfo (#1699)
This commit is contained in:
+6
-1
@@ -222,7 +222,12 @@ function hide_cursor() {
|
||||
}
|
||||
|
||||
function show_cursor() {
|
||||
echoti cnorm 2>/dev/null
|
||||
local cnorm=${terminfo[cnorm]-}
|
||||
if [[ $cnorm == *$'\e[?25h'(|'\e'*) ]]; then
|
||||
print -n '\e[?25h'
|
||||
else
|
||||
print -n $cnorm
|
||||
fi
|
||||
}
|
||||
|
||||
function consume_input() {
|
||||
|
||||
Reference in New Issue
Block a user