class ConsoleImpl

Defined at line 23 of file ../../src/developer/debug/zxdb/console/console_impl.h

The console has some virtual functions for ease of mocking the interface for tests.

Public Methods

void ConsoleImpl (Session * session, line_input::ModalLineInput::Factory line_input_factory)

The |line_input_factory| is used to provide a factory for line input implementations that

don't interact with the actual stdout for testing purposes. If null, stdout will be used.

Defined at line 41 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void ~ConsoleImpl ()

Defined at line 84 of file ../../src/developer/debug/zxdb/console/console_impl.cc

fxl::WeakPtr<ConsoleImpl> GetImplWeakPtr ()

Defined at line 89 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void Init ()

Console implementation

Defined at line 91 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void Quit ()

Defined at line 176 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void Write (const OutputBuffer & output, bool add_newline)

Defined at line 134 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void Clear ()

Defined at line 181 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void ModalGetOption (const line_input::ModalPromptOptions & options, OutputBuffer message, const std::string & prompt, line_input::ModalLineInput::ModalCompletionCallback cb)

Defined at line 161 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void ProcessInputLine (const std::string & line, fxl::RefPtr<CommandContext> cmd_context, bool add_to_history)

Defined at line 194 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void EnableInput ()

Start watching stdio for input. Do nothing if the input is already enabled.

Defined at line 287 of file ../../src/developer/debug/zxdb/console/console_impl.cc

void DisableInput ()

Stop watching stdio for input. The UI will be blocked until EnableInput() is called.

Do nothing if the input is already disabled.

Defined at line 268 of file ../../src/developer/debug/zxdb/console/console_impl.cc

Friends

class ConsoleImplTest_ControlC_Test