home *** CD-ROM | disk | FTP | other *** search
- #include "window.h"
- #define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
-
- WPOINTER w;
- char buf[14] = {0}; /* Null all elements of buf */
-
- main()
- {
- int i;
- WindowInitializeSystem();
- WindowSaveInitial(0);
- w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
- WindowOpen(w);
- WindowDisplay(w,1,NOEFFECT);
- WindowWriteString(w,"Hello World!!",1,1);/* Write String */
- WindowReadCharacters(w,buf,1,1,13); /* Read characters */
- GET_KEY();
- WindowWriteString(w,buf,2,1); /* Write what we have read */
- }