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:
Axel Dörfler 2006-02-17 12:21:28 +00:00
parent 1be006f2cf
commit 333dcda418

View File

@ -231,9 +231,13 @@ read_line(char *buffer, int32 maxLength)
}
/* supposed to fall through */
default:
buffer[position++] = c;
kputchar(c);
if (isprint(c)) {
buffer[position++] = c;
kputchar(c);
}
break;
}
if (position >= maxLength - 2) {
buffer[position++] = '\0';
kputchar('\n');