From bb1e4db26a0ccb93e32dae45ee1e6891f09ba194 Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 16 Feb 2021 14:17:24 +0100 Subject: debug: add cls command to clear console buffer --- src/emu/debug/debugcmd.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/emu/debug/debugcmd.cpp') diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index dc5e2e6539d..432e394cc98 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -161,6 +161,7 @@ debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu m_console.register_command("logerror", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_logerror, this, _1, _2)); m_console.register_command("tracelog", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_tracelog, this, _1, _2)); m_console.register_command("tracesym", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_tracesym, this, _1, _2)); + m_console.register_command("cls", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_cls, this, _1, _2)); m_console.register_command("quit", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_quit, this, _1, _2)); m_console.register_command("exit", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_quit, this, _1, _2)); m_console.register_command("do", CMDFLAG_NONE, 0, 1, 1, std::bind(&debugger_commands::execute_do, this, _1, _2)); @@ -896,6 +897,16 @@ void debugger_commands::execute_tracesym(int ref, const std::vector } +/*------------------------------------------------- + execute_cls - execute the cls command +-------------------------------------------------*/ + +void debugger_commands::execute_cls(int ref, const std::vector ¶ms) +{ + text_buffer_clear(m_console.get_console_textbuf()); +} + + /*------------------------------------------------- execute_quit - execute the quit command -------------------------------------------------*/ -- cgit v1.2.3-70-g09d2