// license:BSD-3-Clause // copyright-holders:Miodrag Milanovic /*************************************************************************** console.c Console interface frontend for MAME. ***************************************************************************/ #ifndef MAME_FRONTEND_CONSOLE_H #define MAME_FRONTEND_CONSOLE_H #pragma once #include "emu.h" struct linenoiseCompletions; class console_frontend { public: // construction/destruction console_frontend(emu_options &options, osd_interface &osd); ~console_frontend(); void start_console(); void completion(char const* prefix, linenoiseCompletions* lc); private: void read_console(std::string &cmdLine); void cmd_quit(); // internal state std::atomic m_run; std::atomic m_wait; std::string m_prompt; std::vector m_commands; }; #endif /* MAME_FRONTEND_CONSOLE_H */