Bug 278991

Summary: Curses redraw error in Weechat with status bar
Product: [Applications] konsole Reporter: janow49420
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: adaptee, alexander, office, shawvrana, witheld
Priority: NOR    
Version: 2.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Red square is showing the are the bar should be continued to
Ugh, still there.

Description janow49420 2011-08-01 05:54:10 UTC
Created attachment 62408 [details]
Red square is showing the are the bar should be continued to

Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

I've noticed in weechat, when two or more windows (channels or private messages) are open and you switch between the two of them the status  bar is "chomped" up. Typing /redraw inside weechat seems to fix it, temporarily until you change window again.

This does  not happen in iTerm, Terminal.app, PuTTY, Gnome Terminal or LXTerminal (some of the many terminals I use).

This also effects Yakuake.


Reproducible: Always

Steps to Reproduce:
1. Open Weechat in Konsole
2. Open some channels, in this case i was in #kde, #kubuntu, #ubuntu and had a private message open
3. Switch between the channels

Actual Results:  
Bar is chomped up and disappears (but never gets any shorter than where the actual text is) so in the screenshot it'll never get shorter than the 5] part of Act, but it will vary inside the red square)

Expected Results:  
The bar (as shown with red square I added in gimp) should stay the full length of the terminal window and shouldn't be "chomped up"

This bug effects Konsole 2.7 and all previous (all 4.X releases that I've used).
Comment 1 Jekyll Wu 2011-08-04 19:10:15 UTC
maybe related with #267158?
Comment 2 Jekyll Wu 2011-08-07 02:31:39 UTC
I can reproduce this problem in weechat with high probability, especially when switching from channel window to the server window.

This problem looks quite similar to #173874(see its attachment)
Comment 3 Jekyll Wu 2011-08-20 01:55:09 UTC
*** Bug 267158 has been marked as a duplicate of this bug. ***
Comment 4 Jekyll Wu 2011-08-20 01:56:01 UTC
*** Bug 173874 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Sulfrian 2012-06-22 10:16:48 UTC
I found the cause of this problem. Konsole only saves relevant chars for each line. If the window if wider than the missing chars are drawn with the default color (seems to have transparent background). I created a patchset that fixes the problem:
https://git.reviewboard.kde.org/r/105325/
Comment 6 janow49420 2012-09-20 06:51:18 UTC
Using Konsole 2.9.1 on KDE 4.9.1 I cannot reproduce this anymore, so it must be fixed.
Comment 7 Jekyll Wu 2012-09-20 10:10:17 UTC
@Kalidarn :

Thanks for your follow up. But I can still reproduce this , and the patch proposed  by Alexander has not been applied because it is an immature fix and cause other problems. So I really doubt this has been magically fixed.
Comment 8 janow49420 2012-10-18 08:02:06 UTC
I can report, this bug isn't fixed. My mistake. I was able to reproduce it in Konsole 2.9.2 on KDE 4.9.2.
Comment 9 janow49420 2013-08-17 10:42:10 UTC
I can't seem to reproduce this in Konsole 2.11 - KDE 4.11.00 so this must be fixed now.
Comment 10 janow49420 2013-08-17 10:44:31 UTC
Created attachment 81752 [details]
Ugh, still there.

wait no, nevermind. It's still there :(

Seems every time I think it is fixed, it happens again
Comment 11 witheld 2014-11-24 06:53:08 UTC
Still reproducible in KDE 4.14.1 Konsole 2.14.1

This is ridiculous
Comment 12 witheld 2014-11-24 07:10:18 UTC
I've tracked down the cause a bit more, it seems to only trigger after doing this https://weechat.org/files/doc/weechat_faq.en.html#urls