Blame netware/keepscreen.c

Packit ed3af9
/* Simple _NonAppStop() implementation which can be linked to your
Packit ed3af9
 * NLM in order to keep the screen open when the NLM terminates
Packit ed3af9
 * (the good old clib behaviour).
Packit ed3af9
 * You dont have to call it, its done automatically from LibC.
Packit ed3af9
 *
Packit ed3af9
 * 2004-Aug-11  by Guenter Knauf
Packit ed3af9
 *
Packit ed3af9
 * URL: http://www.gknw.com/development/mk_nlm/
Packit ed3af9
 *
Packit ed3af9
 * $Id$
Packit ed3af9
 */
Packit ed3af9
Packit ed3af9
#include <stdio.h>
Packit ed3af9
#include <screen.h>
Packit ed3af9
Packit ed3af9
void _NonAppStop()
Packit ed3af9
{
Packit ed3af9
	uint16_t row, col;
Packit ed3af9
Packit ed3af9
	GetScreenSize(&row, &col);
Packit ed3af9
	gotorowcol(row-1, 0);
Packit ed3af9
	/* pressanykey(); */
Packit ed3af9
	printf("<Press any key to close screen> ");
Packit ed3af9
	getcharacter();
Packit ed3af9
}
Packit ed3af9
Packit ed3af9