Module: Stowaway::Output
- Included in:
- Sweeper
- Defined in:
- lib/stowaway/output.rb
Constant Summary collapse
- RESET =
"\r\e[0K"
Instance Method Summary collapse
Instance Method Details
#clr_print(msg) ⇒ Object
5 6 7 |
# File 'lib/stowaway/output.rb', line 5 def clr_print(msg) print "#{RESET}#{msg}" end |
#flush ⇒ Object
9 10 11 12 |
# File 'lib/stowaway/output.rb', line 9 def flush print RESET $stdout.flush end |
#new_line(count = 1) ⇒ Object
14 15 16 17 18 |
# File 'lib/stowaway/output.rb', line 14 def new_line(count = 1) count.times do print "\n" end end |