You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
547 B
24 lines
547 B
#!/usr/bin/env sh |
|
|
|
# This spell awakens or stills the cyclic illumination of the cursor. |
|
|
|
# Define the function to turn the cursor blink on |
|
cursor_blink_on() { |
|
# Turn the cursor blink on |
|
printf "\033[?25h" |
|
} |
|
|
|
# Define the function to turn the cursor blink off |
|
cursor_blink_off() { |
|
# Turn the cursor blink off |
|
printf "\033[?25l" |
|
} |
|
|
|
# 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
|
|
|