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

@@ -51,7 +51,7 @@ public:
listen_port(8080);
// Set the console prompt.
// get_stdio_channel()->set_prompt(console_.get_prompt());
set_console_prompt(console_.get_prompt());
}
void do_luainvoke_command(const util::StringVec &words) {
@@ -172,7 +172,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());
}