~ubuntu-branches/ubuntu/intrepid/libgd2/intrepid-security

« back to all changes in this revision

Viewing changes to netware/keepscreen.c

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2008-08-03 19:21:21 UTC
  • mfrom: (1.1.5 upstream) (9.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080803192121-57qhprpspgsyaij2
Tags: 2.0.36~rc1~dfsg-3ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Drop unnecessary build dependency 'gnulib'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 * $Id: keepscreen.c,v 1.1.2.3 2007/09/09 19:44:24 guenter Exp $
 
11
 */
 
12
 
 
13
#include <stdio.h>
 
14
#include <screen.h>
 
15
 
 
16
void _NonAppStop()
 
17
{
 
18
    uint16_t row, col;
 
19
    
 
20
    GetScreenSize(&row, &col);
 
21
    gotorowcol(row-1, 0);
 
22
    /* pressanykey(); */
 
23
    printf("<Press any key to close screen> ");
 
24
    getcharacter();
 
25
}
 
26
 
 
27