#!/bin/bash

2

3 #Make cursor invisible

4 tput civis

5

6

7 LINES-tput lines

8

COLUMNS-tput cols

line-expr $LINES/2

column-expr ($COLUMNS6\)/2

options("Adeyinka' 'Alex' 'Anu' 'Justin' 'Likhitha' 'Lucas' 'Roy', 'Najaf') 11

optionCount-${#options[@]) 12

lastoption-$(options[$(($optionCount - 1))]} 13

10

14

15 sleeptime-0.0001

16 sleepstep-1.2

17

18 #Clear the screen.

19 tput clear

20

21 #Save cursor position.

22 tput sc

23

24 #Invert the colors (Reverse video mode).

25 tput rev

26

27

28

for1-1<$((15 + $RANDOM % 45)); 1++)); do

tput cup $line $column

29 tput el

30

31

printf $(options[$(($i % $optionCount))]}

sleep $sleeptime

32 sleeptime-$(echo "$sleeptime $sleepstep" | awk '{print $1 $2}')

33 done

34

35 #Turn off all attributes.

36 tput: sgre

37

38 #Return cursor to saved position.

39 tput rc

40