Created
August 20, 2013 05:47
-
-
Save uasi/6277511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts "1" | |
puts "1" | |
puts "1" | |
puts "1" | |
puts "1" | |
print "\e[3A" | |
print "\e[3M" | |
abort | |
# ?25l Hide cursor | |
# ?25h Show cursor | |
# 2K Erase whole line | |
# \r Carriage return, or move cursor to the first column | |
print "\e[?25l\e[2K" | |
print "\e[2KHello\r" | |
sleep 1 | |
print "\e[2KWorld\r" | |
sleep 1 | |
print "\e[2KHello\r" | |
sleep 1 | |
print "\e[2KWorld\r" | |
puts "\e[?25h" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment