|
|
|
@ -14,14 +14,11 @@ cursor_blink_off() {
|
|
|
|
|
printf "\033[?25l" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Check if the script is being called from another script |
|
|
|
|
if [ "${BASH_SOURCE[0]}" = "$0" ]; then |
|
|
|
|
# If not, call the appropriate function based on the command line argument |
|
|
|
|
if [ "$1" = "on" ]; then |
|
|
|
|
cursor_blink_on |
|
|
|
|
elif [ "$1" = "off" ]; then |
|
|
|
|
cursor_blink_off |
|
|
|
|
else |
|
|
|
|
echo "Usage: cast_cursor_blink on|off" |
|
|
|
|
fi |
|
|
|
|
# If not, call the appropriate function based on the command line argument |
|
|
|
|
if [ "$1" = "on" ]; then |
|
|
|
|
cursor_blink_on |
|
|
|
|
elif [ "$1" = "off" ]; then |
|
|
|
|
cursor_blink_off |
|
|
|
|
else |
|
|
|
|
echo "Usage: cast_cursor_blink on|off" |
|
|
|
|
fi |