toaruos/apps/cursor-off.c

20 lines
700 B
C
Raw Normal View History

2018-08-14 11:13:38 +03:00
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2016-2018 K. Lange
*
* cursor-off - Disables the VGA text mode cursor.
*
* This is an old tool that calls a special system call
* to change the VGA text-mode cursor position. The VGA
* terminal renders its own cursor in software, so we
* try to move the hardware cursor off screen so it doesn't
* interfere with the rest of the terminal and look weird.
*/
#include <sys/sysfunc.h>
2018-03-06 17:12:32 +03:00
int main(int argc, char * argv[]) {
int x[] = {0xFF,0xFF};
return sysfunc(TOARU_SYS_FUNC_SETVGACURSOR, (char **)x);
2018-03-06 17:12:32 +03:00
}