|
|
@ -14,8 +14,6 @@ cursor_blink_off() { |
|
|
|
printf "\033[?25l" |
|
|
|
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 not, call the appropriate function based on the command line argument |
|
|
|
if [ "$1" = "on" ]; then |
|
|
|
if [ "$1" = "on" ]; then |
|
|
|
cursor_blink_on |
|
|
|
cursor_blink_on |
|
|
@ -24,4 +22,3 @@ if [ "${BASH_SOURCE[0]}" = "$0" ]; then |
|
|
|
else |
|
|
|
else |
|
|
|
echo "Usage: cast_cursor_blink on|off" |
|
|
|
echo "Usage: cast_cursor_blink on|off" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|