class Byebug::LocalInterface

def close

def close
end

def confirm(prompt)

def confirm(prompt)
  readline(prompt, false)
end

def finalize

Things to do before quitting
def finalize
  if Byebug.method_defined?("annotate") and Byebug.annotate.to_i > 2
    print "\032\032exited\n\n"
  end
  if Byebug.respond_to?(:save_history)
    Byebug.save_history
  end
end

def initialize()

def initialize()
  super
  @command_queue = []
  @have_readline = false
  @history_save = true
  # take gdb's default
  @history_length = ENV["HISTSIZE"] ? ENV["HISTSIZE"].to_i : 256
  @histfile = File.join(ENV["HOME"]||ENV["HOMEPATH"]||".",
                        FILE_HISTORY)
  open(@histfile, 'r') do |file|
    file.each do |line|
      line.chomp!
      Readline::HISTORY << line
    end
  end if File.exist?(@histfile)
  @restart_file = nil
end

def print(*args)

will give an error saying it is looking for more arguments.
say a source-code line with "puts" or "print" in it, this print routine
print has format specifier, which could happen if you are trying to show
argments rather than %. Otherwise it seems that if the string you want to
Callers of this routine should make sure to use comma to separate format
def print(*args)
  STDOUT.printf(*args)
end

def read_command(prompt)

def read_command(prompt)
  readline(prompt, true)
end

def readline(prompt, hist)

def readline(prompt, hist)
  Readline::readline(prompt, hist)
end

def readline(prompt, hist)

def readline(prompt, hist)
  @histfile = ''
  @hist_save = false
  STDOUT.print prompt
  STDOUT.flush
  line = STDIN.gets
  exit unless line
  line.chomp!
  line
end

def readline_support?

def readline_support?
  @have_readline
end