Skip to content

Commit

Permalink
choose: replace clear tty with printf escape codes
Browse files Browse the repository at this point in the history
  • Loading branch information
molleweide committed Jun 14, 2024
1 parent 788e0c9 commit c01ef52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/choose
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ function choose_() (
else
menu_title=$'\e]0;'"👉 $verb $menu_total of $items_count items 👈"$'\a'
fi
printf '%s' "${menu_title}${menu_header}${page_header}${page_visible}${items_bundled}${page_footer}${menu_hint_render}" >"$tty_target"
printf '\e[H\e[2J%s' "${menu_title}${menu_header}${page_header}${page_visible}${items_bundled}${page_footer}${menu_hint_render}" >"$tty_target"
}
function render_result {
local render="$question_title" index
Expand Down Expand Up @@ -1628,7 +1628,7 @@ function choose_() (
break
else
menu_skip_render='no'
tty_clear
# tty_clear
fi
done
tty_finish
Expand Down

0 comments on commit c01ef52

Please sign in to comment.