mirror of
https://github.com/prurigro/vnotes.git
synced 2024-11-22 01:04:10 -05:00
Move tput initialization so the list of notes doesn't get cleared before the text entry in at least urxvt and alacritty
This commit is contained in:
parent
eb0f76f6b6
commit
9eb26d3656
1 changed files with 2 additions and 2 deletions
4
vnotes
4
vnotes
|
@ -207,8 +207,9 @@ function search_notes {
|
||||||
(( digits++ ))
|
(( digits++ ))
|
||||||
done
|
done
|
||||||
|
|
||||||
# Draw the list
|
# Initialize tput and draw the list
|
||||||
printf '\n'
|
printf '\n'
|
||||||
|
tput init
|
||||||
|
|
||||||
for (( x=0; x<${#documents[*]}; x++ )); do
|
for (( x=0; x<${#documents[*]}; x++ )); do
|
||||||
count_display=$(printf "%${digits}s" "$(( x + 1 ))")
|
count_display=$(printf "%${digits}s" "$(( x + 1 ))")
|
||||||
|
@ -229,7 +230,6 @@ function search_notes {
|
||||||
printf '\n'
|
printf '\n'
|
||||||
|
|
||||||
# Initialize the interactive entry line
|
# Initialize the interactive entry line
|
||||||
tput init
|
|
||||||
prompt
|
prompt
|
||||||
tput sc
|
tput sc
|
||||||
tput rc
|
tput rc
|
||||||
|
|
Loading…
Reference in a new issue