Skip to content
Snippets Groups Projects
Commit 014c6e89 authored by rswindell's avatar rswindell
Browse files

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

parent 508f68f9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment