Skip to content

Commit

Permalink
menu_helper: Clear after fzf exit
Browse files Browse the repository at this point in the history
* Not clearing the terminal causing some residue from fzf to show up

Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Oct 8, 2024
1 parent a745c9f commit a6f9769
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/menu_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ fzf_select() {
options=($(echo $1))
selected_option=$(printf "%s\n" "${options[@]}" | fzf --no-clear --reverse --cycle --prompt "$2")
echo $selected_option
clear >&2
}

fzf_select_n() {
selected_option=$(echo -e "${1%\\n}" | fzf --no-clear --select-1 --reverse --cycle --prompt "$2")
echo $selected_option
clear >&2
}

fzy_select() {
Expand Down

0 comments on commit a6f9769

Please sign in to comment.