int result = 0;
int c;
while ((c = getch()), (c != '\r') && (c != '\n')) {
- if (c == 8 && intStrLen > 0) {
+ if ((c == 8 || c == 127) && intStrLen > 0) {
intStrLen--;
intStr[intStrLen] = '\0';
result /= 10;
int strLen = 0;
int c;
while ((c = getch()), (c != '\r') && (c != '\n')) {
- if (c == 8 && strLen > 0) {
+ if ((c == 8 || c == 127) && strLen > 0) {
strLen--;
str[strLen] = '\0';
Draw(g_Node, str);
break;
}
case 8:
- //case 127:
+ case 127:
JSONNodePop(parent);
Draw(g_Node, "");
result = GetNode(parent);
// JSONFree(n);
return 0;
-}
\ No newline at end of file
+}