show cursor in prompts

This commit is contained in:
Dylan Araps 2020-08-04 00:37:33 +03:00
parent 7e188702d9
commit 4925ab69a4
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 2 deletions

5
shfm
View File

@ -75,7 +75,7 @@ status_line() {
}
prompt() {
printf '\0337\033[%sH%s' "$LINES" "$1"
printf '\0337\033[%sH%s\033[?25h' "$LINES" "$1"
case $2 in
r)
@ -85,7 +85,7 @@ prompt() {
;;
esac
printf '\0338'
printf '\0338\033[?25l'
status_line "$PWD ($y/$#)"
}
@ -212,6 +212,7 @@ main() {
prompt / r
set -- *"$ans"*
y=1 y2=1 cur=$1 search=1
redraw "$@"
status_line "search: $ans ($y/$#)"