diff --git a/lib/byebug/interfaces/local_interface.rb b/lib/byebug/interfaces/local_interface.rb index 16212271d..c143cf062 100644 --- a/lib/byebug/interfaces/local_interface.rb +++ b/lib/byebug/interfaces/local_interface.rb @@ -3,6 +3,8 @@ module Byebug # Interface class for standard byebug use. # class LocalInterface < Interface + EOF_ALIAS = 'continue' + def initialize super() @input = STDIN @@ -13,12 +15,12 @@ def initialize # # Reads a single line of input using Readline. If Ctrl-C is pressed in the # middle of input, the line is reset to only the prompt and we ask for input - # again. + # again. If Ctrl-D is pressed, it returns "continue". # # @param prompt Prompt to be displayed. # def readline(prompt) - Readline.readline(prompt, false) + Readline.readline(prompt, false) || EOF_ALIAS rescue Interrupt puts('^C') retry