Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14591 - screen shows stange characters
Summary: screen shows stange characters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-26 14:14 UTC by Thomas Weidner
Modified: 2003-10-14 13:57 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
screen on konsole (screen-konsole.png,29.45 KB, image/png)
2003-03-12 00:21 UTC, Lars Weiler (RETIRED)
Details
screen on xterm (screen-xterm.png,33.46 KB, image/png)
2003-03-12 00:24 UTC, Lars Weiler (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weidner 2003-01-26 14:14:02 UTC
hi,i run irssi and centericq in to screen windows. i switch between them using C-a 0 and C-a 1,but sometimes after switching the window looks more like cat /dev/urandom than a programm. colors are still correct. seems like the console font or so changed as new output is also screwed up.reattaching the screen helps. don't know if this is a screen or a xterm problem.

hope my report is understandable...only school english...
Comment 1 Terje Kvernes 2003-03-01 02:55:37 UTC
I have the same problems.  I usually have centericq, BitchX and a few shells in the screen.  everything is fine until I start centericq, then fonts become garbled.  to the level that Ctrl-L and 'reset' don't help.  I'll look closer at it  today since I've been running screen on my RedHat box earlier.
Comment 2 Terje Kvernes 2003-03-01 04:27:02 UTC
this was interesting.  right now I'm at work, and if I ssh to my gentoo-box screen
works as expected no matter what applications I run.  when I'm at home, I have
the problems one saw earlier (I'll see if I can produce a snapshot) when I get
back home.

I use rxvt both places, so I'm wondering if it can be termcap-related or 
something.  at least screen is shown to work.  if I find a solution, I'll give
notice here.
Comment 3 Terje Kvernes 2003-03-01 14:51:00 UTC
okay, further testing shows that it works as expected under xterm, except for some
UTF-8 issues...  sigh.  :-)
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2003-03-12 00:18:31 UTC
Changed the hardware choice, because it's on my Mac, too.

Some "good" programs that will result to the error are: mc or `make menuconfig`.

On my Mac I use Konsole as terminal application, but it will also occur in xterm.  Using the console, everything seems to be fine.  I will add two screenshots.

I guess the error lays somewhere in ncurses...
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2003-03-12 00:21:50 UTC
Created attachment 9279 [details]
screen on konsole
Comment 6 Lars Weiler (RETIRED) gentoo-dev 2003-03-12 00:24:24 UTC
Created attachment 9280 [details]
screen on xterm
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2003-03-12 00:27:00 UTC
Comment on attachment 9280 [details]
screen on xterm

The inner box of mc looks fine, but everything around has these weird
characters.
Comment 8 Lars Weiler (RETIRED) gentoo-dev 2003-03-12 00:33:09 UTC
Beg my pardon, but could everybody add the output of `emerge info` and the installed version of screen and ncurses?

Mine is:

screen: 3.9.13-r4
ncurses: 5.3-r1

$ emerge info                                                                                                              
Portage 2.0.47-r8 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2)                                                                                
=================================================================                                                                             
System uname: 2.4.20-ben8 ppc                                                                                                                 
GENTOO_MIRRORS=" ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/l
inux/gentoo/"                                                                                                                                 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/
share/config"                                                                                                                                 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"                                                                                                   
PORTDIR="/usr/portage"                                                                                                                        
DISTDIR="/usr/portage/distfiles"                                                                                                              
PKGDIR="/usr/portage/packages"                                                                                                                
PORTAGE_TMPDIR="/var/tmp"                                                                                                                     
PORTDIR_OVERLAY="/usr/local/portage"                                                                                                          
USE="oss dvd xv jpeg nls gif kde png truetype ppc directfb gdbm berkdb slang readline arts tetex aalib tcltk guile mysql X sdl tcpd pam libwww
 ssl perl python imlib oggvorbis gtk qt motif mozilla cdr apm avi crypt cups dga fbcon ipv6 maildir mpeg ncurses opengl pdflib qtmt quicktime 
samba slp spell xml xmms -mitshm -gnome -gnome-libs -gpm -esd"                                                                                
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe"
CXXFLAGS="-O3 -pipe -fsigned-char"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 9 Lars Weiler (RETIRED) gentoo-dev 2003-03-25 17:40:15 UTC
Found out a little workaround for this problem:

If you press two times "Refresh-Screen" (ctrl-L) in the ncurses application (like mc) and then change to another window, it won't show those strange characters.
Comment 10 J Robert Ray 2003-06-26 00:13:15 UTC
Reassigning bugs due to lack of time.
Comment 11 Thomas Preissler 2003-08-10 17:44:50 UTC
When the screen is started when no X is active, i.e. on a plain virtual text console, the above described error does _not_ occur. I can switch sessions using C-a and no rubbish appears on screen.

Perhaps this let us isolate the problem.
Comment 12 Thomas Preissler 2003-08-10 17:45:54 UTC
cc added, this bug is "interesting".
Comment 13 SpanKY gentoo-dev 2003-08-10 17:57:23 UTC
yeah, everyone post `emerge info` 
Comment 14 Thomas Preissler 2003-08-10 18:32:08 UTC
screen-3.9.15
ncurses-5.3-r1


Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.19 i686 AMD Duron(tm) Processor 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex aalib nas bonobo svga ggi tcltk java guile mysql X sdl libwww perl python esd imlib oggvorbis gnome qt kde motif opengl mozilla ldap cdr gpm gtk -cups flash scanner directfb sasl tiff tcpd ssl pam acpi doc dvd evo fbcon gb gd imap innodb ipv6 jikes mbox pic samba socks5 xml activefilter"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -mcpu=i686 -pipe -fomit-frame-pointer -funroll-loops -mmmx"
CXXFLAGS="-O3 -march=i686 -mcpu=i686 -pipe -fomit-frame-pointer -funroll-loops -mmmx"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 15 Lars Weiler (RETIRED) gentoo-dev 2003-08-12 05:39:58 UTC
Problem still occurs even though the system changed a bit:

screen-3.9.15-r1
ncurses-5.3-r4

$ emerge info
Portage 2.0.48-r7 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.1-r2,2.3.2-r1)
=================================================================
System uname: 2.4.21-ppc-r2 ppc
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/mnt/datenhalde/gentoo/gentoo-x86/"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/datenhalde/gentoo/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="oss dvd xv jpeg nls gif png truetype ppc foomaticdb directfb gtkhtml gdbm berkdb readline arts tetex aalib bonobo tcltk guile mysql X sdl tcpd pam libwww ssl perl python imlib oggvorbis gtk qt kde motif mozilla ldap cdr apm apache2 crypt cups dga esd fbcon gnome gnome-libs gpm gtk2 ipv6 -java maildir -mitshm mpeg ncurses opengl pdflib qtmt quicktime samba -slang slp spell xml xml2 xmms"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
FEATURES="ccache userpriv sandbox usersandbox fixpackages cvs"
Comment 16 Lars Weiler (RETIRED) gentoo-dev 2003-10-07 20:52:53 UTC
It seems that screen-4.0.1 in combination with ncurses-5.3-r4 resolves this
problem.  Could you please test and post your results?
Comment 17 Thomas Preissler 2003-10-08 05:33:11 UTC
Good work! It works for me with

screen-3.9.15-r1
ncurses-5.3-r4
mc-4.6.0-r2

I updated ncurses today; it seems that ncurses was broken.

I tested with two screen session, mutt and mc.
Comment 18 Martin Holzer (RETIRED) gentoo-dev 2003-10-14 13:57:55 UTC
closing as fixed with latest versions