cursor-off.c 700 B

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