diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.0/netware/keepscreen.c')
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.0/netware/keepscreen.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.0/netware/keepscreen.c b/Build/source/libs/gd/libgd-2.1.0/netware/keepscreen.c new file mode 100644 index 00000000000..0ff85628524 --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.0/netware/keepscreen.c @@ -0,0 +1,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(); +} + + |