]> git.proxmox.com Git - rustc.git/blob - src/vendor/libssh2-sys/libssh2/nw/keepscreen.c
New upstream version 1.19.0+dfsg1
[rustc.git] / src / vendor / libssh2-sys / libssh2 / nw / keepscreen.c
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
11 #include <stdio.h>
12 #include <screen.h>
13
14 void _NonAppStop()
15 {
16 uint16_t row, col;
17
18 GetScreenSize(&row, &col);
19 gotorowcol(row-1, 0);
20 /* pressanykey(); */
21 printf("<Press any key to close screen> ");
22 getcharacter();
23 }
24
25