Method: Drydock::Screen#flush
- Defined in:
- lib/drydock/screen.rb
#flush ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/drydock/screen.rb', line 23 def flush @@mutex.synchronize do #return if @@offset == @@output.tell @@output.seek @@offset STDOUT.puts @@output.read unless @@output.eof? @@offset = @@output.tell end end |