Package: screen Version: 4.0.3-0.3+b1 Followup-For: Bug #348099
Well, I want this bug fixed, too. I can provide this additional information: screen needs also a package ncurses-term in order to work correctly in 256 colors mode. Unfortunately only the latest version of GNU ncurses (5.6) have terminfo-files for these terminaltypes: screen-256color screen-256color-bce screen-256color-bce-s screen-256color-s Those terminal types are not yet in latest Debian-version of ncurses-term (5.5-5). You also need the latest terminaltypes from upstream maintainer of GNU ncurses. Hence, you need to download and uncompress this file: ftp://invisible-island.net/ncurses/terminfo.src.gz Then run this command in that directory where you have that terminfo.src : tic -e \ screen-256color,screen-256color-s,screen-256color-bce,screen-256color-bce-s \ terminfo.src I run that command as a root. Those new terminfo-files were generated to directory /etc/terminfo . I also gave this command as root: chmod -R ugo+rX,go-w /etc/terminfo Then you need to put these lines to your ~/.Xresources , ~/.xresources and/or .Xdefaults . XTerm.termName: xterm-256color UXTerm.termName: xterm-256color Rxvt.termName: rxvt-256color I have just a file ~/.Xresources and ~/.Xdefaults and ~/.xresources are just symbolic links pointing to it. There is no need to restart X Window System at all. Just run this command: xrdb -merge ${HOME}/.Xresources After that every new (u)xterm will use terminal type xterm-256color and every new rxvt will use terminal type rxvt-256color . They are suitable for for running screen in 256 color mode. Those terminal types are already supported by ncurses-term. Then you must put this command to your screenrc: term screen-256color You don't need to restart your screen. You can do this, instead: C-a : Then write "term screen-256color" and press Return. After that every new shell started with kay sequence "C-a c" will get value screen-256color to its environment variable TERM . Here is a screenshot showing how screen behaves when 256 colors are tried under it. It also shows normal xterm outputting 256 colors: http://iki.fi/juhtolv/tmp/bugreports/screen/01/screen-256color_bug.png That terminalcolors.py is available here: http://www.calmar.ws/vim/terminalcolors.py When I look in to the file debian/rules in latest Debian-sources of screen, there is also this: configure-stamp: dh_testdir ./configure --prefix=/usr \ --infodir='$$(prefix)/share/info' \ --mandir='$$(prefix)/share/man' \ --with-socket-dir=/var/run/screen \ --enable-pam \ --with-pty-mode=0620 \ --with-pty-group=${TTYGROUP} \ --enable-rxvt_osc \ --with-sys-screenrc=/etc/screenrc # --enable-colors256 touch $@ Why that option --enable-colors256 is commented out? Now I am going to recompile that package myself with that option on. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'proposed-updates'), (101, 'unstable'), (99, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8) Versions of packages screen depends on: ii base-passwd 3.5.11 Debian base system master password ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libncursesw5 5.5-5 Shared libraries for terminal hand ii libpam0g 0.79-4 Pluggable Authentication Modules l ii passwd 1:4.0.18.1-7 change and administer password and screen recommends no packages. -- debconf information: screen/old_upgrade_prompt: false -- Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv "Du hast mich gefragt, und ich hab nichts gesagt. Willst du bis der Tod euch scheidet treu ihr sein für alle Tage? Nein. Nein. Willst du bis zum Tod der Scheide sie lieben auch in schlechten Tagen? Nein. Nein." Rammstein