class Byebug::Interface

def afmt(msg, newline="\n")

Format msg with gdb-style annotation header
def afmt(msg, newline="\n")
  "\032\032#{msg}#{newline}"
end

def aprint(msg)

def aprint(msg)
  print afmt(msg)
end

def errmsg(*args)

Derived classes may want to override this to capture output.
Common routine for reporting byebug error messages.
def errmsg(*args)
  if Byebug.annotate.to_i > 2
    aprint 'error-begin'
    print(*args)
    aprint ''
  else
    print '*** '
    print(*args)
  end
end

def format(*args)

def format(*args)
  if args.is_a?(Array)
    new_args = args.first
    new_args = new_args % args[1..-1] unless args[1..-1].empty?
  else
    new_args = args
  end
  new_args.gsub('%', '%%')
end

def initialize

def initialize
  @have_readline = false
end