home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
maj
/
680
/
examples
/
wopen.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-14
|
514b
|
25 lines
/*
** WOPEN.C: Creates a window and displays some text in it.
*/
#include <pictor.h>
void main()
{
/* initialize library */
initvideo();
vcolor(foreback(BOLD+WHITE,BLUE)); cls();
/* create a window and write some text in it */
wopen(5,6,17,70,foreback(BLACK,WHITE),WO_SHADOW);
wputs("Hello, world. wputs() here!\n\nPress any key");
/* wait for user to press a key */
kbdread();
wclose();
/* restore screen */
vcolor(foreback(WHITE,BLACK));
cls();
}