mirror of https://github.com/dylanaraps/shfm.git
show cursor in prompts
This commit is contained in:
parent
7e188702d9
commit
4925ab69a4
5
shfm
5
shfm
|
@ -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/$#)"
|
||||
|
|
Loading…
Reference in New Issue