From owner-cvs-src-old@FreeBSD.ORG Sat Jan 17 23:01:54 2009 Return-Path: <owner-cvs-src-old@FreeBSD.ORG> Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97DB9106573C for <cvs-src-old@freebsd.org>; Sat, 17 Jan 2009 23:01:54 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 85E7E8FC1B for <cvs-src-old@freebsd.org>; Sat, 17 Jan 2009 23:01:54 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0HN1sQP048329 for <cvs-src-old@freebsd.org>; Sat, 17 Jan 2009 23:01:54 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0HN1s15048328 for cvs-src-old@freebsd.org; Sat, 17 Jan 2009 23:01:54 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200901172301.n0HN1s15048328@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten <ed@FreeBSD.org> Date: Sat, 17 Jan 2009 23:01:40 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/syscons/teken teken_subr_compat.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree <cvs-src-old.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src-old>, <mailto:cvs-src-old-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/cvs-src-old> List-Post: <mailto:cvs-src-old@freebsd.org> List-Help: <mailto:cvs-src-old-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src-old>, <mailto:cvs-src-old-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 17 Jan 2009 23:01:55 -0000 ed 2009-01-17 23:01:40 UTC FreeBSD src repository Modified files: sys/dev/syscons/teken teken_subr_compat.h Log: SVN rev 187374 on 2009-01-17 23:01:40Z by ed Fix for my previous commit: color mapping is not 1:1. Cons25 doesn't seem to use a straight 1:1 mapping to the ANSI colors, but uses the same color numbers as at least used by syscons on i386. I suspect if you change the definitions on a different architecture, things may break? Not sure. Add a small array to convert syscons-style color codes to ANSI equivalents, which are used by libteken internally. I didn't notice this bug, because I only tested my code with black, white and green, all of them shared the same numbers. Revision Changes Path 1.3 +7 -4 src/sys/dev/syscons/teken/teken_subr_compat.h