Work on linux version

This commit is contained in:
2021-12-08 13:28:09 -05:00
parent 147c7f2df4
commit b55040665c
6 changed files with 87 additions and 75 deletions

View File

@@ -79,7 +79,7 @@ void Channel::feed_readline(int nbytes, const char *bytes) {
desired_command_ = "";
current_prompt_ = "";
current_command_ = "";
} else if (c == '\b') {
} else if ((c == '\b') || (c == 127)) {
int len = desired_command_.size();
if (len > 0) {
desired_command_ = desired_command_.substr(0, len-1);