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