*BSD News Article 22481


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!usenet.ins.cwru.edu!news.csuohio.edu!stever
From: stever@csuohio.edu (Steve Ratliff)
Subject: FreeBSD Syscons MDA/HGA bug + fix
Message-ID: <1993Oct17.073337.8151@news.csuohio.edu>
Sender: news@news.csuohio.edu (USENET News System)
Organization: Cleveland State University
X-Newsreader: Tin 1.1 PL5
Date: Sun, 17 Oct 1993 07:33:37 GMT
Lines: 40

	The new version of Syscons distributed with FreeBSD EPSILON has
very poor support for HGA/MDA display adaptors.  I seem to recall that
the old 1.x version of Syscons had better support than the current one.
Though my memory could be faulty :)
	Anyway, the bug is that on a HGA display the driver has no
visible cursor.  This makes using vi or any other text editor very
interesting :)  The fix is very simple.  It moves a badly placed "if" to
where it belongs.

*** syscons.c.orig	Sun Oct 17 01:49:48 1993
--- syscons.c	Sun Oct 17 01:54:11 1993
***************
*** 310,322 ****
  		printf(" <%d virtual consoles>\n", NCONS);
  	else
  		printf("\n");
- 	if (crtc_vga) {
  #ifdef	FAT_CURSOR
                  start = 0;
                  end = 18;
  #else
  		get_cursor_shape(&start, &end);
  #endif
  		save_palette();
  		load_font(0, 16, font_8x16);
  		load_font(1, 8, font_8x8);
--- 310,322 ----
  		printf(" <%d virtual consoles>\n", NCONS);
  	else
  		printf("\n");
  #ifdef	FAT_CURSOR
                  start = 0;
                  end = 18;
  #else
  		get_cursor_shape(&start, &end);
  #endif
+ 	if (crtc_vga) {
  		save_palette();
  		load_font(0, 16, font_8x16);
  		load_font(1, 8, font_8x8);