Add upclear utility

This commit is contained in:
Manuele Sarfatti 2025-05-11 01:40:54 +02:00
parent 76d136f64c
commit 24633a743e
14 changed files with 42 additions and 56 deletions

View file

@ -1,4 +1,4 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
# check.sh - Print a success message
# @depends on:
@ -25,9 +25,7 @@ check() {
# If there is a spinner running, stop it and clear the line
if spinning; then
spop
up
bol
cl
upclear
fi
pen -n green "${_mark:-} "

View file

@ -1,4 +1,4 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
# repen.sh - Overwrite the previous line with new text
# @depends on:

View file

@ -1,4 +1,4 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
# spin.sh - Print a spinner with a message
# @depends on:

View file

@ -1,4 +1,4 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
# throw.sh - Print an throw message
# @depends on:
@ -25,9 +25,7 @@ throw() {
# If there is a spinner running, stop it and clear the line
if spinning; then
spop
up
bol
cl
upclear
fi
pen -n red "${_cross:-} "

View file

@ -1,4 +1,4 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
# warn.sh - Print a warning message
# @depends on:
@ -25,9 +25,7 @@ warn() {
# If there is a spinner running, stop it and clear the line
if spinning; then
spop
up
bol
cl
upclear
fi
pen -n yellow bold italic "${_warn:-!} "