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