Skip to content

Instantly share code, notes, and snippets.

@pdostal
Created September 18, 2015 18:29
Show Gist options
  • Save pdostal/c69e3b0beade753ac302 to your computer and use it in GitHub Desktop.
Save pdostal/c69e3b0beade753ac302 to your computer and use it in GitHub Desktop.
Fill whole terminal by alphabet.
#!/bin/bash
lins=`tput lines`
cols=`tput cols`
printf '\033c'
for x in {a..z}; do
for ((l=0; l<=lins; l++)); do
for ((c=0; c<=cols-1; c++)); do
echo -ne "$x"
done
if [ "$l" -ne "$lins" ]; then
echo -ne "\n"
fi
done
tput cup 0 0
done
echo -ne "\n"
printf '\033c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment