Commit 014c6e89 authored by rswindell's avatar rswindell
Browse files

Treats backspace char (Ctrl-H) and delete (ASCII 127) equally.

parent 508f68f9
......@@ -125,7 +125,7 @@ static int getstr(char* str, int maxlen)
#endif
if(ch=='\r' || ch=='\n') /* enter */
break;
if(ch=='\b') { /* backspace */
if(ch=='\b' || ch==DEL) { /* backspace */
if(len) len--;
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment