mirror of
https://github.com/zplug/zplug
synced 2025-04-05 15:19:13 +02:00
15 lines
214 B
Bash
15 lines
214 B
Bash
__zplug::utils::ansi::remove()
|
|
{
|
|
perl -pe 's/\e\[?.*?[\@-~]//g'
|
|
}
|
|
|
|
__zplug::utils::ansi::erace_current_line()
|
|
{
|
|
printf "\033[2K\r"
|
|
}
|
|
|
|
__zplug::utils::ansi::cursor_up()
|
|
{
|
|
printf "\033[%sA" "${1:-"1"}"
|
|
}
|