Remove _tide_cursor_up and _tide_cursor_right

This commit is contained in:
Ilan Cosman 2021-03-05 17:50:30 -08:00
parent e29efc022d
commit 8db9d18e7e
4 changed files with 2 additions and 8 deletions

View File

@ -1,3 +0,0 @@
function _tide_cursor_right -a number
string repeat --count $number --no-newline \e\[1C
end

View File

@ -1,3 +0,0 @@
function _tide_cursor_up -a number
string repeat --count $number --no-newline \e\[1A
end

View File

@ -31,7 +31,7 @@ end
function _tide_title -a text
clear
_tide_cursor_right (math --scale=0 "$fake_columns/2" - (string length $text)/2)
string repeat --no-newline --count (math --scale=0 "$fake_columns/2" - (string length $text)/2) ' '
set_color -o
printf '%s\n' $text
set_color normal

View File

@ -3,7 +3,7 @@ function prompt_spacing
_tide_option 1 Compact
_tide_display_prompt
_tide_cursor_up 1
printf \e\[1A # Move cursor up 1 row
_tide_display_prompt
_tide_option 2 Sparse