File: keepscreen.c

package info (click to toggle)
libgd2 2.2.4-2%2Bdeb9u5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,956 kB
  • sloc: ansic: 46,953; sh: 5,560; cpp: 1,325; makefile: 295; perl: 223; tcl: 45; awk: 43
file content (27 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Simple _NonAppStop() implementation which can be linked to your
 * NLM in order to keep the screen open when the NLM terminates
 * (the good old clib behaviour).
 * You dont have to call it, its done automatically from LibC.
 *
 * 2004-Aug-11  by Guenter Knauf
 *
 * URL: http://www.gknw.com/development/mk_nlm/
 *
 * $Id$
 */

#include <stdio.h>
#include <screen.h>

void _NonAppStop()
{
	uint16_t row, col;

	GetScreenSize(&row, &col);
	gotorowcol(row-1, 0);
	/* pressanykey(); */
	printf("<Press any key to close screen> ");
	getcharacter();
}