Bash make text blink in the shell to catch the eye

Solved
xunil2003 -  
 Anonymous user -
Hello,

Everything is in the title.
I would like to know if it is possible with bash to make text blink in the shell to catch the user's eye?
Is it possible?

Thank you.

Configuration: Linux / Firefox 31.0

2 answers

  1. dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   5 659
     
    hello
    works in an xterm, but not in a gnome-terminal
    tput blink; ls; tput sgr0
    0
    1. Anonymous user
       
      Hi,

      same here, it doesn't work in gnome-terminal, but 100% shell
      printf '\033[5m'; ls; printf '\033[0m'
      0
    2. dubcek Posted messages 18627 Registration date   Status Contributor Last intervention   5 659
       
      replace with bright red
      tput setaf 1; tput bold; ls; tput sgr0
      0
    3. Anonymous user
       
      We can do it in shell (also in
      awk
      ), without external commands
      printf '\033[01;31m'; ls; printf '\033[0m'
      0
  2. xunil2003 Posted messages 766 Registration date   Status Member Last intervention   14
     
    Hello,

    I conducted a test with Konsole and it works for:

    tput blink; echo "Blinking text test"; tput sgr0
    printf '\033[5m'; echo "Blinking text test" ; printf '\033[0m'

    And does not work for:

    tput setaf 1; tput bold; echo "Flickering test"; tput sgr0

    printf '\033[01;31m'; echo "Flickering test"; printf '\033[0m'

    Thank you.
    0
    1. Anonymous user
       
      «it's not working», because it's not supposed to make the text blink, but only to display it in bold red.
      0