lihop/godot-xterm

Shrinking the terminal removes upper rows

Closed this issue · 2 comments

lihop commented

When the terminal is enlarged blank space is added below the buffered row. However, when the terminal is shrunk, this blank space is not removed but rather the buffered rows starting at the top.

Compare this behavior with the behavior of xterm:

Actual (godot-xterm):
resize_issue

Expected (xterm):
xterm

This can causes issues when the Terminal is placed inside a TabContainer as it is actually resized (enlarged by two rows and then shrunk back to the original size) when switching tabs, which results in the output being hidden:
tab_bug

lihop commented

Interestingly, urxvt terminal exhibits similar behavior but removes the lower rows first. So, perhaps it is not a bug per se, but rather a behavior that needs to be configured or accounted for:
urxvt

lihop commented

Somewhere along the way this started working as expected, so this issue can be closed.

Peek 2021-07-11 23-35