lib/roku_builder/monitor.rb in roku_builder-3.10.3 vs lib/roku_builder/monitor.rb in roku_builder-3.10.4
- old
+ new
@@ -40,13 +40,13 @@
all_text = manage_text(all_text: all_text, txt: txt)
end
end
}
running = true
+ @logger.unknown "Q to exit"
while running
begin
- @logger.unknown "Q to exit"
command = gets.chomp
case command
when "q"
thread.exit
running = false
@@ -68,12 +68,12 @@
# @param txt [String] current string from telnet
# @return [String] remaining partial line text
def manage_text(all_text:, txt:)
all_text += txt
while line = all_text.slice!(/^.*\n/) do
- puts line
+ puts line if !line.strip.empty?
end
- if all_text == "BrightScript Debugger> "
+ if all_text.downcase == "BrightScript Debugger> ".downcase
print all_text
all_text = ""
end
all_text
end