Improve console to ignore escape sequences
This commit is contained in:
parent
3610f34c63
commit
1cb427aa65
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user