home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / c / other / learn / wrap.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-25  |  337 b   |  21 lines

  1. /* WRAP.C illustrates:
  2.  *      _wrapon
  3.  */
  4.  
  5. #include <conio.h>
  6. #include <graph.h>
  7.  
  8. main()
  9. {
  10.     _wrapon( _GWRAPON );
  11.     while( !kbhit() )
  12.         _outtext( "Wrap on! " );
  13.  
  14.     getch();
  15.     _clearscreen( _GCLEARSCREEN );
  16.     _wrapon( _GWRAPOFF );
  17.     while( !kbhit() )
  18.         _outtext( "Wrap off!" );
  19.     getch();
  20. }
  21.