mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 12:03:48 +03:00
Remove _tide_cursor_up and _tide_cursor_right
This commit is contained in:
parent
e29efc022d
commit
8db9d18e7e
@ -1,3 +0,0 @@
|
||||
function _tide_cursor_right -a number
|
||||
string repeat --count $number --no-newline \e\[1C
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
function _tide_cursor_up -a number
|
||||
string repeat --count $number --no-newline \e\[1A
|
||||
end
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user