Skip to content

Instantly share code, notes, and snippets.

@DerBunman
Created July 13, 2019 18:02
Show Gist options
  • Save DerBunman/f7807d6c02b29aa28c004b192bafecd7 to your computer and use it in GitHub Desktop.
Save DerBunman/f7807d6c02b29aa28c004b192bafecd7 to your computer and use it in GitHub Desktop.
sticky header test
#!/usr/bin/env zsh
#trap 'tput csr 0 "$((LINES-1))"' INT
tput csr "2" "$((LINES-1))"
tput clear
echo CORNERTEXT
echo ${(r:${COLUMNS}::=:)${}}
tput rc
for i in {1..200}; do
tput sc
tput cup 0 0
echo "ROUND $i ....."
tput rc
ls
sleep .1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment