Skip to content

Commit

Permalink
Update interfaces/remote_interface.rb for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Jan 6, 2018
1 parent 7bddb3e commit 32fe8ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cache:
- .bundle/gems

matrix:
fast_finish: true
# fast_finish: true
allow_failures:
- ruby_version: _trunk

Expand Down
10 changes: 5 additions & 5 deletions lib/byebug/interfaces/remote_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ def initialize(socket)

def read_command(prompt)
super("PROMPT #{prompt}")
rescue Errno::EPIPE, Errno::ECONNABORTED
"continue"
end

def confirm(prompt)
super("CONFIRM #{prompt}")
rescue Errno::EPIPE, Errno::ECONNABORTED
"continue"
end

def print(message)
Expand All @@ -40,11 +44,7 @@ def close

def readline(prompt)
puts(prompt)

result = input.gets
return "continue" unless result

result.chomp
(input.gets || "continue").chomp
end
end
end
2 changes: 1 addition & 1 deletion test/remote_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def program_with_two_breakpoints
18: thingy = #{example_class}.new
19: byebug
20: thingy.a
21: sleep 5
21: sleep 3
22: thingy.a
23: byebug
24: thingy.a
Expand Down

0 comments on commit 32fe8ee

Please sign in to comment.