Bug 1054509

Summary: Display problems in terminal since latest Tumbleweed update
Product: [openSUSE] openSUSE Tumbleweed Reporter: Joachim Ziebs <joachim>
Component: OtherAssignee: Dr. Werner Fink <werner>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_FKVxtKwswt, forgotten_zdmTN2CmSH, jc, loloimeusp, mati865, noahadvs
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot showing the jumbled output

Description Joachim Ziebs 2017-08-18 17:14:03 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36
Build Identifier: 

I updated my Tumbleweed yesterday and have display problems with the following programs in the terminal: htop, bmon, ncdu and cmus. I tried Gnome Terminal, Terminator, xterm and Tilda. All show the same jumbled output.

Seems like ncurses is the culprit.

Reproducible: Always

Steps to Reproduce:
1. Open terminal.
2. Start ncurses program.
3. Jumbled display.


Expected Results:  
Correct output of the programs.
Comment 1 Joachim Ziebs 2017-08-18 17:22:55 UTC
Created attachment 737313 [details]
Screenshot showing the jumbled output
Comment 2 Noah Davis 2017-08-18 17:56:18 UTC
I also have this bug.
The following ncurses packages were removed/installed on my system in the 2017-08-16 update:

$ cat /var/log/zypp/history | grep ".*2017-08-16.*ncurses.*"
2017-08-16 17:10:49|install|libncurses6|6.0-27.2|x86_64|root@Noah-OpenSUSE-K501UW|openSUSE-20170510-0|ef89f28eb8bb71cf574ee942986ccf5511eac0b1|
2017-08-16 17:10:56|install|libncurses6-32bit|6.0-27.2|x86_64|root@Noah-OpenSUSE-K501UW|openSUSE-20170510-0|3093476ccadac9bec4599840cc00bfbad2cbc73d|
2017-08-16 17:11:02|install|ncurses-utils|6.0-27.2|x86_64|root@Noah-OpenSUSE-K501UW|openSUSE-20170510-0|2f45e7891ac6739a894b7957a6b2e87941b4e927|
2017-08-16 17:11:14|install|ncurses-devel|6.0-27.2|x86_64|root@Noah-OpenSUSE-K501UW|openSUSE-20170510-0|2d8de99fecd3d49d20744ea52afb116734f99220|
2017-08-16 17:11:15|install|libyui-ncurses8|2.48.4-1.1|x86_64||openSUSE-20170510-0|2e2347e76b163f0fdbed769c5f9687add6ee8db1|
2017-08-16 22:29:59|remove |libyui-ncurses-pkg7|2.48.4-1.4|x86_64||
2017-08-16 22:30:01|remove |libyui-ncurses7|2.48.3-1.1|x86_64||
2017-08-16 22:30:25|install|libyui-ncurses-pkg8|2.48.5-1.1|x86_64||openSUSE-20170510-0|6d668ce5f6c0c090d88cc752b8ddd45f538d04c6|
Comment 3 Mateusz Mikuła 2017-08-19 00:12:37 UTC
It could be issue with Terminfo which was also updated recently.
I've found workaround: `TERM=linux <command>`, works with atop, htop and iftop.
Comment 4 Joachim Ziebs 2017-08-19 16:18:46 UTC
Indeed, "TERM=linux <command>" is a working workaround.
Comment 5 Forgotten User zdmTN2CmSH 2017-08-23 08:31:46 UTC
I noticed the same in Konsole and also that running htop inside a screen in Konsole works okay.
Comment 6 Andre Lopes da Silva 2017-08-24 13:15:04 UTC
Noticed that yesterday on my desktop Tumbleweed while trying yast at terminal. (XFCE4-terminal)

My notebook (also Tumbleweed) wasn't updated for a few weeks and was ok, but the exact same error appeared after zypper update (LXDE-terminal)

Today I tried to install a fresh Tumbleweed (up-to-date Net installer iso) on a KVM virtual machine and confirmed it also happens on a fresh install (LXDE Terminal)

Suggested workaround works - "TERM=linux <command>" ("TERM=linux yast" in my case)
Comment 7 Joachim Ziebs 2017-08-28 17:18:05 UTC
Ok, I've since simply added 'export TERM=linux' to my ~/.zshenv and that has solved the problem for me.
Comment 8 Forgotten User FKVxtKwswt 2017-09-02 12:51:33 UTC
This bug maybe is duplicate from this:
https://bugzilla.opensuse.org/show_bug.cgi?id=1054448

In my tests the TERM "xterm-color" works too.

For YaST only I set alias in ~/.alias or "~/.bashrc" (or your shell) file:
alias sudo='sudo '
alias yast='TERM=xterm-color yast'

OR

For a user environment config set alias for sudo in ~/.alias or "~/.bashrc" (or your shell) file:
alias sudo='sudo '

And set TERM in "~./bashrc (or your shell) file"
export TERM=xterm-color

Note: for root the file ".bashrc" doesn't exist by default
Comment 9 Mateusz Mikuła 2017-09-02 13:55:19 UTC
Yes it's the same issue.

*** This bug has been marked as a duplicate of bug 1054448 ***