You are not logged in.

#1 2016-07-13 21:17:43

letni69
Member
Registered: 2015-09-21
Posts: 17

Terminal + zsh: Corrupted buffer when horizontally resizing window

I have the following issue that when I resize the terminal window horizontally (gnome-terminal) the buffer content gets somehow corrupted and overrides other content.
I am using zsh as my shell (v5.2) with grml configs and zsh-syntax-highlighting (I uninstalled both to test if the problem is caused by these packages but the problem still persists.)

Any ideas? Is zsh the problem? or gnome-terminal?

Screenshot:
https://s32.postimg.org/6hws6v39x/Scree … _15_31.png

Last edited by letni69 (2016-07-13 21:18:28)

Offline

#2 2016-07-14 10:19:56

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Terminal + zsh: Corrupted buffer when horizontally resizing window

It's caused by calling

zle reset-prompt

all the time to enable something in your prompt to be updated, like showing wether you're in "insert" or "normal" mode if you have vi-mode set.

Offline

#3 2016-07-14 15:07:56

letni69
Member
Registered: 2015-09-21
Posts: 17

Re: Terminal + zsh: Corrupted buffer when horizontally resizing window

bstaletic wrote:

It's caused by calling

zle reset-prompt

all the time to enable something in your prompt to be updated, like showing wether you're in "insert" or "normal" mode if you have vi-mode set.

Okay, I am not sure if this behavior is intended or not. So is this actually a bug I can report (to the zsh developers)?

Offline

#4 2016-07-14 17:09:40

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Terminal + zsh: Corrupted buffer when horizontally resizing window

I don't think that's a bug, as it needs to figure out a way to redraw your prompt all the time - if that means corrupting something else then so be it.

It being not a bug, doesn't mean the functionality can't be improved so a bug report wouldn't hurt. At worst they'd label it "not a but" and close the report.

Offline

Board footer

Powered by FluxBB