Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 15:16:00 -0800 (PST)
From:      Glenn Trewitt <glenn@trewitt.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/50300: Make the loader's use of terminal-control sequences optional.
Message-ID:  <200303252316.h2PNG021073034@bureau.west.cmu.edu>
Resent-Message-ID: <200303252320.h2PNKBLi021614@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         50300
>Category:       bin
>Synopsis:       Make the loader's use of terminal-control sequences optional.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 25 15:20:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Glenn Trewitt
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Carnegie Mellon University
>Environment:
System: FreeBSD bureau.west.cmu.edu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386
>Description:
	The loader(8) program sends cursor control commands to the console at
	boot time.  Systems that use serial consoles don't necessarily provide
	support for those (fixed) control sequences.  This can create really
	annoying problems, possibly locking up some terminals.

	The loader sources provide a compile-time #ifdef option (TERM_EMU)
	that enables this functionality, which is always enabled in the
	Makefile.
	
>How-To-Repeat:
	n/a
>Fix:
Make the TERM_EMU option selectable in the Makefile.

This is a diff on /usr/src/sys/boot/i386/libi386/Makefile.

The same patch applies to /usr/src/sys/boot/pc98/libpc98/Makefile, but
I have no way to test that.

diff -u Makefile.orig Makefile
--- Makefile.orig       Tue Mar 25 14:58:31 2003
+++ Makefile    Tue Mar 25 14:58:58 2003
@@ -29,7 +29,9 @@
 .endif
 
 # Include simple terminal emulation (cons25-compatible)
+.ifdef(NO_BOOT_TERM_EMU)
 CFLAGS+= -DTERM_EMU
+.endif
 
 # Make "machine" required for all objects
 # (based on the more complete case in sys/i386/boot/Makefile.inc)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303252316.h2PNG021073034>