Work on linux version
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user