mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-24 01:13:13 +03:00
Change cursor movement functions to string repeat
This commit is contained in:
parent
2d388e3745
commit
563e28ef57
@ -11,7 +11,7 @@ Tide is a [Fish][] theme that provides a powerful, flexible, and out-of-the-box
|
||||
2. Source and run the install function:
|
||||
|
||||
```fish
|
||||
curl -sL git.io/tide | source; and tide_install
|
||||
curl -sL git.io/tide | source && tide_install
|
||||
```
|
||||
|
||||
### System Requirements
|
||||
|
@ -1,11 +1,7 @@
|
||||
function _cursor_up -a number
|
||||
if test $number -gt 0
|
||||
printf '%b' '\033['"$number"'A'
|
||||
end
|
||||
string repeat --count $number --no-newline \e\[1A
|
||||
end
|
||||
|
||||
function _cursor_right -a number
|
||||
if test $number -gt 0
|
||||
printf '%b' '\033['"$number"'C'
|
||||
end
|
||||
string repeat --count $number --no-newline \e\[1C
|
||||
end
|
Loading…
Reference in New Issue
Block a user