From owner-freebsd-arch@FreeBSD.ORG Sat Sep 6 23:01:13 2014 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 58E99BE9; Sat, 6 Sep 2014 23:01:13 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FEE61FC8; Sat, 6 Sep 2014 23:01:12 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s86N1Auw073781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 6 Sep 2014 17:01:10 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s86N1AOU073778; Sat, 6 Sep 2014 17:01:10 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 6 Sep 2014 17:01:10 -0600 (MDT) From: Warren Block To: freebsd-arch@FreeBSD.org Subject: Improving /etc/motd and ANSI Message-ID: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sat, 06 Sep 2014 17:01:10 -0600 (MDT) Cc: wblock@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2014 23:01:13 -0000 /etc/motd has been in need of improvement for some time. Recently, I did a rewrite: http://www.wonkity.com/~wblock/motd/motd http://www.wonkity.com/~wblock/motd/motd.diff This new version still has the problem of using "in-band" quote marks to mark up the commands. We tell the reader to run `man man', for example, but it's not particularly obvious that the quotes should not be entered. As an experiment, this version uses ANSI underline escape sequences: http://www.wonkity.com/~wblock/motd/motd.ansi That reads better, is less likely to be misunderstood, and will work on normal consoles and most terminal emulations in use today. It will not display correctly on things that do not understand VT100/VT220 or ANSI codes, but I suspect that is a vanishingly small portion of the user base. Those users are also likely to be familiar with the problem. Is there some showstopper reason not to commit this ANSI version?