Method: Debugger::ControlCommandProcessor#prompt

Defined in:
lib/ruby-debug/processor.rb

#prompt(context) ⇒ Object

The prompt shown before reading a command. Note: have an unused ‘context’ parameter to match the local interface.



434
435
436
437
438
439
# File 'lib/ruby-debug/processor.rb', line 434

def prompt(context)
  p = '(rdb:ctrl) '
  p = afmt("pre-prompt")+p+"\n"+afmt("prompt") if
    Debugger.annotate.to_i > 2
  return p
end