From 9eb26d3656fa294f49be69652a51845aa4e8ed13 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 21 Mar 2024 18:01:53 -0400 Subject: [PATCH] Move tput initialization so the list of notes doesn't get cleared before the text entry in at least urxvt and alacritty --- vnotes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnotes b/vnotes index c894330..0ca1b96 100755 --- a/vnotes +++ b/vnotes @@ -207,8 +207,9 @@ function search_notes { (( digits++ )) done - # Draw the list + # Initialize tput and draw the list printf '\n' + tput init for (( x=0; x<${#documents[*]}; x++ )); do count_display=$(printf "%${digits}s" "$(( x + 1 ))") @@ -229,7 +230,6 @@ function search_notes { printf '\n' # Initialize the interactive entry line - tput init prompt tput sc tput rc