The kernel debugger now only puts printable characters into the input buffer.
This should eliminate the cases where commands doesn't seem to be accepted (but look fine on screen). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16453 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -231,9 +231,13 @@ read_line(char *buffer, int32 maxLength)
|
|||||||
}
|
}
|
||||||
/* supposed to fall through */
|
/* supposed to fall through */
|
||||||
default:
|
default:
|
||||||
|
if (isprint(c)) {
|
||||||
buffer[position++] = c;
|
buffer[position++] = c;
|
||||||
kputchar(c);
|
kputchar(c);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (position >= maxLength - 2) {
|
if (position >= maxLength - 2) {
|
||||||
buffer[position++] = '\0';
|
buffer[position++] = '\0';
|
||||||
kputchar('\n');
|
kputchar('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user