fix for backspace fix
This commit is contained in:
parent
75d8c07d9c
commit
3954817248
2
bbs.c
2
bbs.c
@ -241,6 +241,7 @@ void s_readstring(int socket, char *buffer, int max) {
|
||||
s_putstring(socket, "\e[D \e[D");
|
||||
continue;
|
||||
} else if (c == '\b' || c == 127) {
|
||||
i -= 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -266,6 +267,7 @@ void s_readpass(int socket, char *buffer, int max) {
|
||||
s_putstring(socket, "\e[D \e[D");
|
||||
continue;
|
||||
} else if (c == '\b' || c == 127) {
|
||||
i -= 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user