clip cursor position just in case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23581 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
53f7979709
commit
b70fb738a6
@ -205,6 +205,8 @@ void
|
|||||||
console_set_cursor(int32 x, int32 y)
|
console_set_cursor(int32 x, int32 y)
|
||||||
{
|
{
|
||||||
char buff[] = "\033Y ";
|
char buff[] = "\033Y ";
|
||||||
|
x = MIN(79,MAX(0,x));
|
||||||
|
y = MIN(24,MAX(0,y));
|
||||||
buff[3] += (char)x;
|
buff[3] += (char)x;
|
||||||
buff[2] += (char)y;
|
buff[2] += (char)y;
|
||||||
sInput.WriteAt(NULL, 0LL, buff, 4);
|
sInput.WriteAt(NULL, 0LL, buff, 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user