bashterminalflashing

BASH: how can the terminal be set to flash?


I want to get a BASH terminal flashing. The goal is to get the terminal to flash between two colours, say white and black, substantially, using standard Linux utilities. I don't mind if the terminal is filled with characters and cleared in order to do this. A rough picture of what this could look like is as follows:


Solution

  • You can toggle between normal and reverse video with the following shell commands:

    printf '\e[?5h'  # Turn on reverse video
    printf '\e[?5l'  # Turn on normal video