bin/shellplay in shellplay-0.0.12 vs bin/shellplay in shellplay-0.0.13
- old
+ new
@@ -88,15 +88,13 @@
puts "You are at the end of the session."
@lastelapsed = 0
end
end
+print "\n\e[33m>\e[0m Type <enter> to begin."
+
while continue do
- if @playprompt
- print "\n\e[33m>\e[0m "
- printf("\e[33melapsed: \e[0m\e[1;93m#{@session.timeformat || @session.config.timeformat}s\e[0m ", @lastelapsed) unless @lastelapsed == 0
- end
command = STDIN.gets.strip
case command
when /^(?:q|x)$/
puts "\nPlay ended.\n"
continue = false
@@ -124,7 +122,11 @@
end
end
rescue Exception => e
puts Paint[e.message, :red, :bold]
end
+ end
+ if @playprompt
+ print "\n\e[33m>\e[0m "
+ printf("\e[33melapsed: \e[0m\e[1;93m#{@session.timeformat || @session.config.timeformat}s\e[0m ", @lastelapsed) unless @lastelapsed == 0
end
end