[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#650291: xterm -bg/-fg doesn't choose nearest colour the hardware supports



Package: xterm
Version: 261-1
Severity: minor


When specifying colours not supported by the hardware, xterm does not
choose the nearest hardware colour.

For example:

   xterm -bg '#9c009c009c00'

On a standard 24 bit colour server, the nearest colour is #9b9b9b9b9b9b,
but xterm chooses #9c9c9c9c9c9c.

Likewise, for e.g. -bg '#ff00ff00ff00', xterm chooses #fffffffffff,
which is much farther then the nearest colour supported by the display
(#fefefefefefe) - xterm's chosen colour has a difference of 255 units per
component to the requested colour, while the nearest colour the display
supports only has a difference of only 2 units, which is a considerable
difference).

-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
hi  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libfontconfig1            2.8.0-2.1      generic font configuration library
ii  libice6                   2:1.0.6-2      X11 Inter-Client Exchange library
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand
ii  libutempter0              1.1.5-3        A privileged helper for utmp/wtmp 
ii  libx11-6                  2:1.3.3-4      X11 client-side library
ii  libxaw7                   2:1.0.7-1      X11 Athena Widget library
ii  libxft2                   2.1.14-2       FreeType-based font drawing librar
ii  libxmu6                   2:1.0.5-2      X11 miscellaneous utility library
ii  libxt6                    1:1.0.7-1      X11 toolkit intrinsics library
ii  xbitmaps                  1.1.0-1        Base X bitmaps

Versions of packages xterm recommends:
ii  x11-utils                     7.5+4      X11 utilities
ii  xutils                        1:7.5+8    X Window System utility programs m

Versions of packages xterm suggests:
ii  xfonts-cyrillic               1:1.0.1    Cyrillic fonts for X

-- no debconf information



Reply to: