home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR41
/
CTASK22D.ZIP
/
SNAP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-21
|
939b
|
44 lines
/*
This program installs the tasker, does a snapshot dump, and exits.
It is useful if you want to peek into a resident copy of CTask.
Program call is
SNAPxx - Dump to STDOUT
SNAPxx M - Dump to Mono screen
SNAPxx C - Dump to Colour screen
*/
#include <stdlib.h>
#include <ctype.h>
#include "tsk.h"
#include "tsksup.h"
#include "tskprf.h"
int main (int argc, char **argv)
{
int c;
c = install_tasker (0, 0, IFL_STD, "Snap");
tsk_printf ("Install_tasker returned %d\n", c);
c = (argc < 2) ? 'x' : tolower (argv [1][0]);
switch (c)
{
case 'm': tsk_set_mono (25, 80);
screensnap (25);
break;
case 'c': tsk_set_colour (25, 80);
screensnap (25);
break;
default: snapshot (stdout);
break;
}
remove_tasker ();
return 0;
}