Date: Sun, 21 Jul 1996 19:32:12 +0200 (IST) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com Subject: conio patch Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 ----