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

@@ -103,7 +103,7 @@ private:
world_->run_unittests();
actor_id_ = world_->create_login_actor();
stdostream() << "Login actor ID: " << actor_id_ << std::endl;
//get_stdio_channel()->set_prompt(console_.get_prompt());
set_console_prompt(console_.get_prompt());
}
void event_update()
@@ -113,7 +113,7 @@ private:
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());
if (print_channeler_.channel(world_->get_printbuffer(actor_id_), stdostream())) {
world_->invoke(print_channeler_.invocation(actor_id_));