Sizing of panels/console gets messed up after resizing terminal #2116
-
I have been using Rich's panels for quite a few applications. One issue that I've noticed is that while the application is running, resizing the terminal causes the panel/console formatting to get messed up. I've noticed that after I change the terminal size, the panel gets messed up and goes up in the console, but then the panel on the next event does indeed size properly. Is this happening because I'm not refreshing the panel/console instance enough? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Rich doesn't support automatic resizing since it's not a TUI (Text-based User Interface) library, but CLI (Command Line Interface) library. |
Beta Was this translation helpful? Give feedback.
-
I should point out that when making the terminal larger, the Panel resizes with the window without weird borders formatted for the previous size persisting in the terminal output. However, when reducing the size the panel does correctly size properly, but the panels outlines and such of the old size do persist in the terminal if that makes sense. Hmmm, can you expand on what you mean by Rich being a CLI instead of a TUI? The fact that there are colors, tabels, panels, etc. are TUI interfaces? Is what I'm asking what bridges the gap between Rich and Textualize in general? |
Beta Was this translation helpful? Give feedback.
-
Maybe post a video so we know we’re in the same page? |
Beta Was this translation helpful? Give feedback.
Maybe post a video so we know we’re in the same page?