From trewitt@west.cmu.edu  Tue Mar 25 15:16:03 2003
Return-Path: <trewitt@west.cmu.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B5A4137B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Mar 2003 15:16:03 -0800 (PST)
Received: from jeeves.west.cmu.edu (jeeves.west.cmu.edu [198.123.23.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7DA8043F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Mar 2003 15:16:00 -0800 (PST)
	(envelope-from trewitt@west.cmu.edu)
Received: from bureau.west.cmu.edu (bureau.west.cmu.edu [10.0.1.12])
	by jeeves.west.cmu.edu (8.12.6/8.11.3) with ESMTP id h2PNG0rP043814
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Mar 2003 15:16:00 -0800 (PST)
	(envelope-from trewitt@west.cmu.edu)
Received: from bureau.west.cmu.edu (localhost [127.0.0.1])
	by bureau.west.cmu.edu (8.12.3/8.12.3) with ESMTP id h2PNG0oh073035
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Mar 2003 15:16:00 -0800 (PST)
	(envelope-from trewitt@bureau.west.cmu.edu)
Received: (from trewitt@localhost)
	by bureau.west.cmu.edu (8.12.3/8.12.3/Submit) id h2PNG021073034;
	Tue, 25 Mar 2003 15:16:00 -0800 (PST)
	(envelope-from trewitt)
Message-Id: <200303252316.h2PNG021073034@bureau.west.cmu.edu>
Date: Tue, 25 Mar 2003 15:16:00 -0800 (PST)
From: Glenn Trewitt <glenn@trewitt.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Make the loader's use of terminal-control sequences optional.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50300
>Category:       bin
>Synopsis:       [patch] make the loader(8) 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:  Sat May 24 17:21:49 UTC 2008
>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:
