From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 18 22:33:14 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24A3E16A408 for ; Tue, 18 Apr 2006 22:33:14 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id B620043D79 for ; Tue, 18 Apr 2006 22:33:02 +0000 (GMT) (envelope-from zombyfork@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so819140nfc for ; Tue, 18 Apr 2006 15:33:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=pnVotxWuKLepdOYkw7dDYLASSO9U7NftT05w7O2Zg7JurnhJZrHhrif6TW94siioGB/LGVd/ADf7xAeaak9IvS3su+pTRl9UW7zMFVvJVD9edSd1l4Pi6BsA6Kk6iP3MZTAhSqrLhpbnaBGYk0bWQVbUXG2KK87df/frktaLWZo= Received: by 10.49.93.4 with SMTP id v4mr3592194nfl; Tue, 18 Apr 2006 15:26:33 -0700 (PDT) Received: by 10.48.217.6 with HTTP; Tue, 18 Apr 2006 15:26:33 -0700 (PDT) Message-ID: <346a80220604181526m80f6566s72a85bd62f0f7e18@mail.gmail.com> Date: Tue, 18 Apr 2006 18:26:33 -0400 From: "Coleman Kane" To: "Darren Pilgrim" In-Reply-To: <44456323.9070306@bitfreak.org> MIME-Version: 1.0 References: <444515C8.3030406@centtech.com> <20060418165709.GA17705@central.0xfce3.net> <44452532.40703@centtech.com> <20060418.114933.69380798.imp@bsdimp.com> <346a80220604181102v3597a1edp3e05fa663b87e15c@mail.gmail.com> <20060418193018.GB694@turion.vk2pj.dyndns.org> <444545D3.5010405@centtech.com> <20060418203333.GA19094@central.0xfce3.net> <44454D96.3030004@centtech.com> <44456323.9070306@bitfreak.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] Fancy rc startup style RFC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 22:33:14 -0000 On 4/18/06, Darren Pilgrim wrote: > > Eric Anderson wrote: > > > > If I could figure out how to make sh do colors, I'd do it. :) > > Please do not use colors in rc. Escape-sequenced colors make unacceptabl= e > assumptions about the user and syslogd strips escape sequences anyway, so > it > would be of no use to logged consoles. Serial consoles introduce other > problems with buggy escape handling in third-party terminal programs. A > good text layout and descriptive status messages do far more for clarity > and > readability than any use of color ever can. I understand your concerns regarding the "pollution" of rc messages with excess baggage such as ANSI-color sequences and attributes. The patches hav= e been set up in such a way as to provide the "fancy" capability only on demand, and the "fancy w/ color" only as another toggle. I think that havin= g a more defined status interface would be very beneficial (and using colors and other attributes supported by advanced terminal types seems to be what people would like). For instance, right now we just have the name of the service printed if it is started, otherwise an ugly (in my eyes) dump of its stderr is displayed on-screen. If we instead defined an API that defined a "Service Name" "Service Description" "Service Status" and "Error Code" then we could have = a more manageable service structure (IMHO). I think this work toward making the service status messages prettier CAN ONLY BE GOOD. Even if "pretty colors" are deemed "too fancy" by the freebsd gods in the end. As for your "buggy escape handling" of third-party terminals: 1) Don't enable the feature and it won't be a problem, or 2) Don't use crappy third-party terminal software that will die when it recieves ^[[0;31;40m rather than setting the attributes to NormalText-Red-on-Black. In fact, I haven't heard of one for some time. -- Coleman Kane