Add support for > and >> prompts with new readline

This commit is contained in:
2023-05-18 22:09:54 -04:00
parent eb43c99f47
commit d3c4c0801d
9 changed files with 47 additions and 9 deletions

View File

@@ -77,7 +77,7 @@ public:
channel_ = new_outgoing_channel("nocert:localhost:8085");
// Set the console prompt
// get_stdio_channel()->set_prompt(console_.get_prompt());
set_console_prompt(console_.get_prompt());
// The driver loads the lua source automatically.
// However, we don't need it. Throw it out.
@@ -252,7 +252,7 @@ public:
eng::string line = get_stdio_channel()->in()->readline();
if (line == "") break;
console_.add(line);
// get_stdio_channel()->set_prompt(console_.get_prompt());
set_console_prompt(console_.get_prompt());
do_command(console_.get_command());
}