Only use clear if it is installed (fixes #265)

This commit is contained in:
Ilan Cosman 2022-03-14 07:10:29 -07:00
parent 179f08aa0f
commit 4169dbf1cb
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ function _next_choice -a nextChoice
end
function _tide_title -a text
clear
command -q clear && clear
set_color -o
string pad --width (math --scale=0 "$fake_columns/2" + (string length $text)/2) $text
set_color normal
@ -68,7 +68,7 @@ function _tide_menu
case q
set -e _tide_selected_option # Skip through all the _next_choices
set -e _tide_option_list
clear
command -q clear && clear
break
case $_tide_option_list
set -e _tide_option_list

View File

@ -10,7 +10,7 @@ function finish
switch $_tide_selected_option
case y
_tide_finish
clear
command -q clear && clear
end
end