-
Notifications
You must be signed in to change notification settings - Fork 100
Newsbeuter looks wrong after resizing the terminal #492
Comments
I find it interesting that the first screenshot doesn't display the hints line at the bottom. Do you have Wrapping lines is unusual. Do you have your terminal configured to do that? I retract my earlier statement about i3 being unrelated; maybe it resizes the terminal in such a way that the terminal doesn't notice it properly (still highly doubtful of that, though). Does the bug persist if you resize the terminal using the mouse?
What do you mean by "each of the lists" here? There's just one list at a time, and if you go to another dialog, it should be rendered properly. Does Ctrl-L fix the problem? (Very confusing. Trying all the questions I can think of.) |
Sorry for hijacking the other thread. I just thought the two issues were related so I didn't want to open up more issues. I meant to say that I have to manually highlight each of the articles in a feed to get them to take the window size into consideration. Yes, CTRL-L fixes the issue. I can also confirm that this problem continues on Mate-Terminal, with bash(my bash config is basically empty), and with the MATE desktop when resizing with the mouse. Here are screenshots of what I am getting: The following is my newsbeuter config:
|
Okay, so the problem probably isn't in the terminal emulator and/or window manager. What about Ncurses? What version do you have? Did you build it yourself, installed from third-party repo, or anything like that? Also please post the output of Do you have similar problems with any other TUIs? Mutt, for example? (Not Irssi—it doesn't use Ncurses.) |
This is the output of newsbeuter -v: newsbeuter 2.9 - http://www.newsbeuter.org/ newsbeuter is free software and licensed under the MIT/X Consortium License.
I took a longer look at this yesterday, and I think this is the way that the output is supposed to look. If I open a terminal window that takes up half the screen and I then open it up to be the full screen, the output will not extend beyond the original half screen of the terminal. I have the same issue in other ncurses applications like RTV. If this is not the correct behavior, we can keep this open and narrow it down. If not, you may close this. |
No, this is definitely not a correct behaviour. When you resize the window, Newsbeuter should attempt to use all the space in it. If there's not enough room, some of the content will be "clipped" (but not line-wrapped). When you resize again, the "clipping" won't stick—Newsbeuter should re-draw everything to use the space. That's how it works for me here on NixOS and also what I've seen on Ubuntu 16.04 machine I borrowed to test this. So let's narrow it down further. Please answer the rest of my questions:
|
I haven't built ncurses myself or installed from a third party repo. If I run, ncurses5-config --version, I get:
I should also note that I am on Ubuntu MATE 16.04(I run a lot of the MATE applications in i3). This shouldn't really make a difference since it uses the base LTS packages and only installs the MATE Desktop on top. I also do not use mate-terminal because I find it has glitches that gnome-terminal does not. Perhaps you may know something that I do not regarding if this makes a difference. |
I now feel foolish for asking about the version—it's right there in the output of
I don't know how much difference this makes, but it's still nice to know. For one, this means that the environment I used for tests (vanilla Ubuntu) might be not as close to yours as I thought. I also don't know what else you can do to debug it further. It doesn't seem like Newsbeuter itself is broken—otherwise a lot more users will be telling me about the problem. But then your configuration doesn't seem to be very suspicious either—you're running the same Ncurses that tons of Ubuntu users are running, and they don't complain either. |
Thank you for all your help in this. I reinstalled all the packages, and I found the problem. I haven't keyed in on the exact issue, but it seemed to be a problem with fish shell. I reinstalled an older version of it, and the problem seems to be fixed. You can close this issue. |
Hmm, I wonder why it didn't work in Bash either, though. Did Fish mess up something that all shells use? This'll probably stay a mystery forever. :) |
Something must have changed with the latest version of fish that caused this error. While I was testing bash, I simply loaded up bash but the underlying shell was still fish. I thought I had just launched fish through bashrc, but I think when I first installed it I must have set the default terminal to fish, which I didn't remember. I only found this out when I loaded up a virtual machine to test this. I ended up placing bash back as the default and then launching fish as a launch command through gnome terminal and it fixed this. Moral of the story: don't use fish shell as your default terminal. |
(Originally reported in comments to another issue).
Newsbeuter version (copy from
newsbeuter -v
): 2.9-3 (Ubuntu 16.04)Steps to reproduce the issue:
Start Newsbeuter:
Resize the window:
Resize the window back to the original size:
Other info you think is relevant:
TERM
isxterm-256color
, but Newsbeuter renders slowly if user doesn't haveexport TERM=xterm-256color
in his shell's config. (Yes, this is just re-defining the default.)The text was updated successfully, but these errors were encountered: