Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2009 15:26:32 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/syscons scterm-teken.c src/sys/teken teken.c teken.h teken_demo.c teken_subr.h teken_subr_compat.h
Message-ID:  <200909261526.n8QFQxbA022840@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-09-26 15:26:32 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/syscons      scterm-teken.c 
    sys/teken            teken.c teken.h teken_demo.c teken_subr.h 
                         teken_subr_compat.h 
  Log:
  SVN rev 197522 on 2009-09-26 15:26:32Z by ed
  
  Add 256 color support.
  
  It is quite inconvenient that if an application for xterm uses 256 color
  mode, text suddenly starts to blink (because of ;5; in the middle).
  We'd better just implement 256 color mode and add a conversion routine
  from 256 to 8 color mode, which doesn't seem to be too bad in practice.
  
  Remapping colors is done quite simple. If one of the channels is most
  actively represented, primary colors are used. If two channels are most
  actively represented, secondary colors are used. If all three channels
  are equal (gray), it picks between black and white.
  
  Reported by:    Paul B. Mahol <onemda gmail com>
  
  Revision  Changes    Path
  1.14      +4 -4      src/sys/dev/syscons/scterm-teken.c
  1.9       +51 -0     src/sys/teken/teken.c
  1.6       +3 -0      src/sys/teken/teken.h
  1.5       +2 -1      src/sys/teken/teken_demo.c
  1.9       +32 -0     src/sys/teken/teken_subr.h
  1.4       +2 -2      src/sys/teken/teken_subr_compat.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909261526.n8QFQxbA022840>