bin/shellplay in shellplay-0.0.10 vs bin/shellplay in shellplay-0.0.11
- old
+ new
@@ -40,11 +40,11 @@
end
if screen.displaycommand
if screen.customprompt
print screen.customprompt
else
- print @session.config.prompt
+ print @session.prompt || @session.config.prompt
end
sleep @sleeptime
print screen.stdin
STDIN.gets
@lastelapsed = screen.timespent
@@ -91,10 +91,10 @@
end
while continue do
if @playprompt
print "\n\e[33m>\e[0m "
- printf("\e[33melapsed: \e[0m\e[1;93m#{@session.config.timeformat}s\e[0m ", @lastelapsed) unless @lastelapsed == 0
+ 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"