First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 91055
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Rodrigo Queiro <overdrigzed@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ncurses-5.4.20050319-xterm.patch ncurses-5.4.20050319-xterm.patch patch SpanKY 2005-05-03 21:53 0000 354 bytes Details | Diff
gnome-terminal-2-gnome-TERM.patch gnome-terminal-2-gnome-TERM.patch patch SpanKY 2005-05-04 15:05 0000 234 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 91055 depends on: 122566 Show dependency tree
Bug 91055 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-01 07:35 0000
Since updating to the new ncurses-5.4.20050319, irssi doesn't scroll it's
output. When the screen fills with text, instead of scrolling, it just replaces
the last line with the most recent line, and leaves all the rest alone.

I have tried both re-emerging irssi and ncurses.

This occurs with irssi0.8.10_rc5-r1. The problem does not occur if I downgrade
to ncurses-5.4.

I didn't notice any problems in any other programs.

Reproducible: Always
Steps to Reproduce:
1. Start irssi
2. Cause the screen to fill up with text, e.g. by connecting to a server

Actual Results:  
Every time a new line was added, the others should have been moved up one.
a    a
b    b
c -> c
d    d
e    f

Expected Results:  
The others remained in their places, and the last line was replaced by the new
line.
a    b
b    c
c -> d
d    e
e    f

Portage 2.0.51.20-r5 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.11
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo
http://www.gigaload.org/gentoo.org/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl alsa apache2 apm avi berkdb bitmap-fonts cdparanoia
crypt cups curl dvd emboss encode fam flac foomaticdb fortran gd gdbm gif gpm
gstreamer gtk gtk2 guile imagemagick imlib java jpeg libg++ libwww mad mikmod
mmx mmx2 motif mozilla mp3 mpeg mysql ncurses network nls nptl nvidia offensive
ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline
real samba sdl session sockets spell sse sse2 ssl svg svga tcltk tcpd theora
tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs xinerama
xml
xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #1 From Greg Kroah-Hartman 2005-05-02 21:53:38 0000 -------
This isn't an irssi specific issue, same thing happens with mutt.

Mike, any idea?

------- Comment #2 From SpanKY 2005-05-02 22:03:50 0000 -------
this has come up before, see Bug 43432 and its dupes/dependent bugs

anyone care to track down the terminal info on this one ? :P

eterm / nano works fine for me

------- Comment #3 From Greg Kroah-Hartman 2005-05-02 22:07:56 0000 -------
Am using eterm and mutt, and have the problem.

------- Comment #4 From SpanKY 2005-05-03 10:11:45 0000 -------
*** Bug 91300 has been marked as a duplicate of this bug. ***

------- Comment #5 From Rodrigo Queiro 2005-05-03 10:46:38 0000 -------
I get it with Terminal (the XFCE one) and irssi.

------- Comment #6 From Michael Hill 2005-05-03 12:35:59 0000 -------
I reported bug #91300 against mutt; it was marked as a duplicate of this bug. 
Looking over the comments here, I masked sys-libs/ncurses-5.4.20050319 and
emerged back down to ncurses-5.4-r6, and mutt's normal behavior has resumed. 
(I use mutt within Eterm, but I just noticed that, although most of my
term-related envars say Eterm, I have TERM=xterm, and xterm was one of the
terminfo files that changed between the two ncurses versions.)

Perhaps the owner can change the bug title to reflect the ncurses focus?

------- Comment #7 From SpanKY 2005-05-03 21:53:56 0000 -------
Created an attachment (id=57986) [edit]
ncurses-5.4.20050319-xterm.patch

this is a forward port of the patch we applied to ncurses-5.4 when we had the
same problem ... can people try it out ?

------- Comment #8 From SpanKY 2005-05-03 22:12:31 0000 -------
Thomas: could you take a look at this please ?

it seems that with ncurses-5.4, if we dont set the ncurses/xterm terminfo to use xterm-xf86-v43, scrolling in apps like irssi/mutt/nano get all screwy ... it also works if i build with the configure option --without-xterm-new, but that's no fun :)

simple way i found to reproduce it was to launch an Eterm, export TERM to xterm, and then edit a file with nano and page up / page down in it ... sometimes lines wouldnt be redrawn correctly

or launch irssi, connect to a server, and watch the motd not scroll properly ...

------- Comment #9 From Chris White 2005-05-04 00:05:48 0000 -------
Judging from the differences, it almost looks like something to do with:

parm_index 	indn 	SF 	Scrolls forward #1 lines. (G)

from diff-ing the infocmp information.  I'm still trying to work it out and I ended up getting somewhere with it.. just wasn't able to securely guarantee what I did was the fix.

------- Comment #10 From Thomas Dickey 2005-05-04 03:11:34 0000 -------
yes - I pointed this out before (emulators that identify as
"xterm" are subject to this problem).  Eterm is a bad example
since its developer does try to make a workable termcap for
it.  gnome-terminal is the usual (inverted) "good" example
since it doesn't implement the parm_indx and doesn't document
anything.  The feature in question is something that xterm's
implemented for quite a while, but is not a vt220 escape
sequence.  It's one of the ISO-6429 sequences (that I've had
a test-screen in vttest for - I forget - since 1999 or before)

------- Comment #11 From SpanKY 2005-05-04 05:23:15 0000 -------
so would you suggest we fix gnome-terminal or work around the issue by using
the posted patch here ?  i'm not much of a term expert ;)

------- Comment #12 From Thomas Dickey 2005-05-04 05:51:00 0000 -------
I'd rather fix gnome-terminal.  The simple fix for it
is to simply make it set TERM to "gnome".

------- Comment #13 From SpanKY 2005-05-04 07:03:06 0000 -------
sounds good to me too :)

everyone who has this bug, what terminal are you experiencing it in and what do you have $TERM set to when you hit it ?  (run `echo $TERM` to find out)

if you're using gnome-terminal, does exporting 'TERM' to 'gnome' resolve this issue for you ?

when i use eterm with TERM set to 'Eterm', everything works fine

------- Comment #14 From Chris White 2005-05-04 09:19:29 0000 -------
TERM is set to xterm
setting it to gnome in gnome-terminal fixes this.

------- Comment #15 From SpanKY 2005-05-04 15:04:24 0000 -------
thanks thomas, i'll attach a patch to fix gnome-terminal :)

------- Comment #16 From SpanKY 2005-05-04 15:05:07 0000 -------
Created an attachment (id=58076) [edit]
gnome-terminal-2-gnome-TERM.patch

GNOME team, please add this patch to gnome-terminal so it will export the
correct TERM setting

------- Comment #17 From Rodrigo Queiro 2005-05-04 22:29:10 0000 -------
It's not just GNOME terminal - it also occurs in xfce-extra/terminal for me
(known as Terminal).

------- Comment #18 From SpanKY 2005-05-05 16:04:08 0000 -------
Terminal is working on my machine :/

i tried with both irssi connecting to irc.freenode.net and watching the motd scroll properly, and then launching nano on a big file and no lines were redrawn incorrectly

------- Comment #19 From Sven Wegener 2005-05-05 18:23:36 0000 -------
*** Bug 91633 has been marked as a duplicate of this bug. ***

------- Comment #20 From P Nienaber 2005-05-05 18:32:36 0000 -------
>everyone who has this bug, what terminal are you experiencing it in and what do
>you have $TERM set to when you hit it ?  (run `echo $TERM` to find out)
xterm

>if you're using gnome-terminal, does exporting 'TERM' to 'gnome' resolve this
>issue for you ?
yes.

There are also I believe some other outstanding gnome-terminal/irssi (possibly
ncurses in general) weirdnesses.  When running irssi within screen, changing
GTK themes causes ncurses rendering issues.  These issues are persistent within
that `screen irssi` session.  I can reproduce them and give more info if it's
useful =)

------- Comment #21 From Ulrich Dobramysl 2005-05-07 06:18:07 0000 -------
Just wanted to add that this also happens with aterm when TERM is set to
'xterm'. Setting it to 'gnome' helps, but I do not know if this is the right
thing to do.

------- Comment #22 From Thomas Dickey 2005-05-07 08:14:18 0000 -------
iirc, "aterm" is identical to rxvt in this area.
There's an "rxvt" terminfo entry which is suitable.

------- Comment #23 From Michael Hill 2005-05-07 08:19:59 0000 -------
I think the connection is the 'xterm' terminfo file.

1)  It was one of the changed files in the new ncurses package.

2)  Multiple terminal programs (Eterm, aterm, gnome-terminal) have problems with TERM=xterm that go away when TERM is set to some other value.

------- Comment #24 From Thomas Dickey 2005-05-07 11:36:00 0000 -------
true - the point is that each of these (including xterm) is a
program which differs from the others - and none of them match
xterm exactly.  That's why there are separate terminfo entries
for each.

------- Comment #25 From SpanKY 2005-05-07 16:52:11 0000 -------
setting eterm to use TERM=xterm is wrong, use TERM=Eterm

------- Comment #26 From P Nienaber 2005-06-03 05:55:37 0000 -------
Anyone else tried gnome-terminal 2.10.0?  It seems to (!) work properly with
the
'xterm' terminfo file, not that it really SHOULD be claiming to be xterm, but
at
least it seems to work now.

------- Comment #27 From Jason Bucata 2005-09-04 09:14:07 0000 -------
(In reply to comment #26)
> Anyone else tried gnome-terminal 2.10.0?  It seems to (!) work properly with the
> 'xterm' terminfo file, not that it really SHOULD be claiming to be xterm, but at
> least it seems to work now.

I just read ciaranm's thread on the mailing list.  FWIW, I run x86 stable and
have been using gnome-terminal 2.10.0 for however long now, and until I saw that
thread, I didn't know that there was anything wrong.  So it WorksForMe(TM).

------- Comment #28 From P Nienaber 2005-12-05 19:08:04 0000 -------
the issue is now back, although the results look a bit different.  can we just
ignore the fact that the Gnome people are stubborn and patch this locally? :)

------- Comment #29 From SpanKY 2005-12-05 19:09:44 0000 -------
if by 'patch this locally' you mean gnome-terminal, then yes

if you mean ncurses, then no

------- Comment #30 From P Nienaber 2005-12-05 19:42:20 0000 -------
oh, also, gnome-terminal 2.12* fixes this, but TERM is of course still set
wrong, so... it'll probably happen again.

and yes I do mean patch gnome-terminal.  ncurses reflects exactly what it should.

...although I do somewhat take issue with the fact that ncurses, as such a
ubiquitous piece of software, is still stuck providing its own terminfo files. 
one would think that by now, terminal emulators would be providing their own
terminfo files so that they actually reflected the _installed_ version of that
terminal emulator, but alas... (and of course this part isn't something Gentoo
can do anything about)

------- Comment #31 From SpanKY 2005-12-05 20:33:02 0000 -------
well, keeping a huge database in ncurses itself is a huge benefit ... consider
the remote machine where no X is installed thus no gnome-terminal/eterm/etc...

where would the terminfo files for these terms come from if not ncurses ? 
otherwise, you'd get the nasty 'unknown terminal' error message when you ssh-ed
into said remote box from a gnome-terminal/eterm/etc...

------- Comment #32 From P Nienaber 2005-12-05 20:41:55 0000 -------
mmm, point taken.  I guess it might make sense to have versioned ones -- e.g.
gnome-terminal says it's the same as xterm-x.y.z and ncurses has a terminfo file
for a range that contains that version...

------- Comment #33 From Donnie Berkholz 2005-12-05 21:59:06 0000 -------
(In reply to comment #31)
> where would the terminfo files for these terms come from if not ncurses ? 
> otherwise, you'd get the nasty 'unknown terminal' error message when you ssh-ed
> into said remote box from a gnome-terminal/eterm/etc...

As you currently do with rxvt-unicode?

------- Comment #34 From John N. Laliberte (RETIRED) 2006-01-17 14:32:33 0000 -------
we will apply and test this patch when the first 2.13 beta/rc hits portage.  
( target the 2.14 release )

This should happen within the next month or so.

Thanks

------- Comment #35 From Dick Marinus 2006-05-14 07:24:11 0000 -------
(In reply to comment #34)
> This should happen within the next month or so.

and 4 months later... nothing happened ;)

------- Comment #36 From John N. Laliberte (RETIRED) 2006-05-14 07:50:26 0000 -------
no, things did happen.

we have the patch ready to go, but are waiting on: bug #122566

also see bug #122562, bug #122494, others we had to get fixed before applying
in tree.

Also, if you look in 2.14 gnome-terminal you will see a line:
# patch gnome terminal to report as GNOME rather than xterm

with the patch commented out, just awaitng 122566 to be resolved.

------- Comment #37 From John N. Laliberte (RETIRED) 2006-07-17 18:49:07 0000 -------
+  re-enable patch to report as "gnome" and not "xterm". see #91055 and
+  #122566. archs, this revision is not to be stabled with 2.14.2.

ncurses dep was added to ensure people have the revision with the correct
patches.

We'll see what happens with unstable users to see if there are any reported
bugs due to this switch.  marking as fixed now.

------- Comment #38 From P Nienaber 2006-07-17 21:54:14 0000 -------
I don't feel like rooting around to reproduce all of this right now, but I'll
mention that even with TERM=gnome I was having issues a few months ago, and
finally got fed up and ditched anything VTE-related (xfce-extra/Terminal is
b0rked, too, pretty much identically).  Not reopening, as I'm not going to
pursue reproducing it, but I'd guess it still happens, so if anyone stumbles on
this bug...

First Last Prev Next    No search results available      Search page      Enter new bug