home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c005 / 4.ddi / C / SCRESET.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-05  |  1.3 KB  |  44 lines

  1. /**
  2. *
  3. * Name        screset -- Reset video adapter to a given mode.
  4. *
  5. * Synopsis    new_mode = screset(mode);
  6. *
  7. *        int new_mode      The screen mode actually set,
  8. *                  or -1 if requested mode is not
  9. *                  supported by installed hardware.
  10. *        int mode      The mode to select.
  11. *
  12. * Description    SCRESET selects a video adapter for future I/O and
  13. *        resets it to a given mode.  This includes testing for
  14. *        the presence of the proper device, clearing the screen,
  15. *        filling the screen with foreground attribute 7 and
  16. *        background attribute 0, setting the BIOS equipment word,
  17. *        and setting the global variables b_device and b_curpage
  18. *        to indicate page 0 on the new device.
  19. *
  20. *        See SCNEWDEV.C for the permitted mode values.  If the
  21. *        specified mode is not supported by the installed
  22. *        equipment, then no reset occurs and -1 is returned.
  23. *
  24. *        On the Enhanced Graphics Adapter, SCRESET will only
  25. *        select a standard 25-line font.  Use SCNEWDEV to select a
  26. *        43-line font.  Use SCCHGDEV to switch devices without
  27. *        clearing screens or resetting adapters.
  28. *
  29. * Returns    ercode          The screen mode actually set,
  30. *                  or -1 if requested mode is not
  31. *                  supported by installed hardware.
  32. *
  33. * Version    3.0 (C)Copyright Blaise Computing Inc.    1986
  34. *
  35. **/
  36.  
  37. #include <bscreen.h>
  38.  
  39. int screset(mode)
  40. int mode;
  41. {
  42.     return scnewdev(mode,25);
  43. }
  44.