reedline icon indicating copy to clipboard operation
reedline copied to clipboard

[BUG] Resizing window overwrites previous output

Open sholderbach opened this issue 4 years ago • 4 comments

Resizing the window now leads to unexpected behavior (observed if screen filled to the bottom, as well as if it is partially filled)

before resize (80x24)

image

after resize (80x30)

image

sholderbach avatar Apr 10 '21 11:04 sholderbach

First naive approach at resetting the cursor location seems to only work for vertical resizing when performed slowly. Large resizing (both manually and by maximizing) still breaks.

Edit: corrected direction to vertical

sholderbach avatar Apr 11 '21 15:04 sholderbach

I just added support for some resize support for the current prompt+input. While we don't have control over what's already on the screen, we can at least cleanup the current input the user is working on.

sophiajt avatar Jun 10 '21 04:06 sophiajt

Horizontal resizing (left/right) now seems to mostly work. Vertical resizing (up/down) still eats lines. Will try to take a deeper look

sholderbach avatar Jun 10 '21 17:06 sholderbach

Status after #217: Vertical resizing doesn't seem to eat lines as readily now. Changing the vertical size with the prompt at the bottom still causes #157 Horizontal resizing is now liberally eating previous output

sholderbach avatar Dec 31 '21 00:12 sholderbach