From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 11 15:32:39 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BBDCB16A4FA for ; Mon, 11 Jun 2007 15:32:39 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id AE44813C469 for ; Mon, 11 Jun 2007 15:32:39 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id E0D121CC01C; Mon, 11 Jun 2007 08:16:20 -0700 (PDT) Date: Mon, 11 Jun 2007 08:16:20 -0700 From: Jeremy Chadwick To: freebsd-hackers@freebsd.org Message-ID: <20070611151620.GA17565@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.15 (2007-04-06) Subject: ASCII menu in loader/frames.4th X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 15:32:39 -0000 Just an idea I'd throw out there (-hackers seemed like the best place to discuss this): The current loader.conf defaults to having the fbsdbw logo and the menuing system appear. One of the "issues" is that the character set used to draw the menu box frames is CP437 ("IBM PC/DOS character set"). This doesn't look so great for those of us who choose to use ISO-8859-1 encoding or UTF-8 encoding; I mainly use PuTTY to connect to my FreeBSD boxes, and to get on serial console, use cu/tip or console. I think it would be useful to have a ASCII-ised version of the frame/menuing stuff in (I think?) frames.4th. The difference: CP437: ³ 3. Boot FreeBSD in Safe Mode ³ ³ 4. Boot FreeBSD in single user mode ³ ³ ³ ³ Select option, [Enter] for default ³ ³ or [Space] to pause timer 2 ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ASCII: | 3. Boot FreeBSD in Safe Mode | | 4. Boot FreeBSD in single user mode | | | | Select option, [Enter] for default | | or [Space] to pause timer 2 | +-----------------------------------------+ One could enable use of this with some loader.conf variable like loader_frames="ascii" or (default) loader_frames="cp437", possibly even a "vt100" type (using VT100 line-drawing characters). I'm not familiar with forth, otherwise I'd come up with a patch. Maybe I'll try learning it (argh, another language to learn...), or hack around a bit. Comments? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |