Mail Archives: djgpp-workers/1996/07/21/12:36:34
It is not right IMHO that `_set_screen_lines' has a side effect of turning
on the bright background colors. The code is mine; I pulled it off some
program I wrote and neglected to take those fragments out. Here are the
necessary changes:
*** libc/pc_hw/co80/conio.c~1 Thu Feb 22 03:35:14 1996
--- libc/pc_hw/co80/conio.c Sun Jul 21 17:58:22 1996
***************
*** 789,799 ****
regs.h.ah = 0x11;
regs.h.al = font & 0xff;
__dpmi_int(0x10, ®s);
-
- /* Enable intensity bit. */
- regs.h.bl = 0;
- regs.x.ax = 0x1003;
- __dpmi_int(0x10, ®s);
}
/* Stretch a 8x8 font to the 8x10 character box. This is required to
--- 789,794 ----
***************
*** 890,898 ****
/* Load our 8x10 font and enable intensity bit. */
load_8x10_font();
- regs.h.bl = 0;
- regs.x.ax = 0x1003;
- __dpmi_int(0x10, ®s);
}
/* Switch to screen lines given by NLINES. */
--- 885,890 ----
***************
*** 916,926 ****
regs.h.bl = 0;
regs.h.ah = 0x11;
regs.h.al = (adapter_type > 1 ? 0x14 : 0x11);
- __dpmi_int(0x10, ®s);
-
- /* Enable intensity bit. */
- regs.h.bl = 0;
- regs.x.ax = 0x1003;
__dpmi_int(0x10, ®s);
}
--- 908,913 ----
- Raw text -