Even more sophisticated readline functionality

This commit is contained in:
2021-11-04 14:00:35 -04:00
parent deaf4e4873
commit e5a1f238ec
4 changed files with 17 additions and 22 deletions

View File

@@ -155,7 +155,6 @@ void TextGame::do_quit_command(const StringVec &cmd) {
return;
}
actor_id_ = 0;
stop_driver();
}
void TextGame::do_command(const StringVec &words) {
@@ -191,7 +190,7 @@ void TextGame::channel_printbuffer() {
printbuffer_line_ = printbuffer->first_line();
}
while (printbuffer_line_ < printbuffer->first_unchecked()) {
stdostream() << "* " << printbuffer->nth(printbuffer_line_) << std::endl;
stdostream() << printbuffer->nth(printbuffer_line_) << std::endl;
printbuffer_line_ += 1;
}
if (printbuffer_line_ > printbuffer->first_line()) {