From owner-cvs-all Sun Jun 4 20:51:37 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6038A37B829; Sun, 4 Jun 2000 20:51:30 -0700 (PDT) (envelope-from joe@FreeBSD.org) Received: (from joe@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA28622; Sun, 4 Jun 2000 20:51:30 -0700 (PDT) (envelope-from joe@FreeBSD.org) Message-Id: <200006050351.UAA28622@freefall.freebsd.org> From: Josef Karthauser Date: Sun, 4 Jun 2000 20:51:30 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/ls extern.h ls.c print.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG joe 2000/06/04 20:51:30 PDT Modified files: bin/ls extern.h ls.c print.c Log: Don't look up the ANSI sequences each time a colour is changed, this is extremely inefficient, instead write them all down at the beginning. The correct sequence to switch colours off is to first use 'op' if it exists, otherwise use 'oc'. If neither of these exist then we shouldn't be doing colour with this terminal. Reviewed by: ache Revision Changes Path 1.10 +5 -1 src/bin/ls/extern.h 1.35 +24 -3 src/bin/ls/ls.c 1.22 +5 -10 src/bin/ls/print.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message