bin/shellplay in shellplay-0.0.2 vs bin/shellplay in shellplay-0.0.3
- old
+ new
@@ -29,16 +29,20 @@
puts " x,q quit"
puts
end
def display(screen)
- print @session.config.prompt
- sleep @sleeptime
- print screen.stdin
- STDIN.gets
+ if screen.displaycommand
+ print @session.config.prompt
+ sleep @sleeptime
+ print screen.stdin
+ STDIN.gets
+ @lastelapsed = screen.timespent
+ else
+ @lastelapsed = 0
+ end
puts screen.stdout
puts Paint[screen.stderr, :red]
- @lastelapsed = screen.timespent
end
def shownext
if @session.current_screen and @session.current_screen.stdin
display @session.current_screen