legacy_TReq icon indicating copy to clipboard operation
legacy_TReq copied to clipboard

Redraw UI on terminal window resize events

Open marcospb19 opened this issue 8 months ago • 0 comments

Currently, when you resize the terminal window, it breaks the UI:

image

Window resize events are provided by the Crossterm crate, which is already in use, here's an example of that: https://github.com/ratatui-org/ratatui/discussions/220#discussioncomment-6140110

CrosstermEvent::Resize(x, y) => {
    _sender.send(Event::Resize(x, y)).unwrap();
},

Not sure if this should be a bug or enhancement request.

marcospb19 avatar Dec 10 '23 17:12 marcospb19