geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
566 B

  1. /* Simple _NonAppStop() implementation which can be linked to your
  2. * NLM in order to keep the screen open when the NLM terminates
  3. * (the good old clib behaviour).
  4. * You dont have to call it, its done automatically from LibC.
  5. *
  6. * 2004-Aug-11 by Guenter Knauf
  7. *
  8. * URL: http://www.gknw.net/development/mk_nlm/
  9. */
  10. #include <stdio.h>
  11. #include <screen.h>
  12. void _NonAppStop()
  13. {
  14. uint16_t row, col;
  15. GetScreenSize(&row, &col);
  16. gotorowcol(row-1, 0);
  17. /* pressanykey(); */
  18. printf("<Press any key to close screen> ");
  19. getcharacter();
  20. }