home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 344_01 / border.c < prev    next >
Text File  |  1990-02-21  |  859b  |  30 lines

  1. /*
  2. HEADER:        ;
  3. TITLE:        Border color setting function;
  4. VERSION:    1.0;
  5.  
  6. DESCRIPTION:    Function to set the border colors on IBM pcs and compatibles;
  7.  
  8. KEYWORDS:    Video functions, interrupts;
  9. SYSTEM:        MSDOS;
  10. FILENAME:    Border;
  11. WARNINGS:    None;
  12.  
  13. SEE-ALSO:    Cursor_type;
  14. AUTHORS:    Dr. Ronald J. Terry;
  15. COMPILERS:    Turbo C;
  16. */
  17. /**************************************************************************/
  18. /*  Border() will set the border color on IBM pcs and compatibles, however*/
  19. /*  it will not work on ps/2s equipped with MCGA adapters since the border*/
  20. /*  can only be black for those types.                                    */
  21. /**************************************************************************/
  22.  
  23. #include<dos.h>
  24.  
  25. void Border(int color)
  26. {
  27.      union REGS regs;
  28.      regs.h.ah = 11; regs.x.bx = color;
  29.      int86(16,®s,®s);
  30. }