Improve console to ignore escape sequences

This commit is contained in:
Ali Mashtizadeh 2014-10-08 14:04:51 -07:00
parent 3610f34c63
commit 1cb427aa65

View File

@ -94,6 +94,16 @@ Console_Gets(char *str, size_t n)
str[i] = '\0';
return;
}
if (ch == '\t') {
Console_Putc('\t');
str[i] = '\t';
continue;
}
if (ch < 0x20)
{
// Unprintable character
continue;
}
Console_Putc(ch);
str[i] = ch;
}