randy3k/radian

Increasing font size generate another prompt

Opened this issue · 6 comments

Increasing font size of the terminal, whatever keybinding I use, generate another prompt.

I have radian version 0.6.9 installed in a python 3.11 virtual environment, and kitty as terminal.

Here is a video (can't upload here, says file is corrupt):

https://youtu.be/ypmMojF3KeY

Still happening in 0.6.10

It is expected. The UI needs to be re-rendered.

It is expected. The UI needs to be re-rendered.

why kitty, raw R, python, ipython, does not do this?

ipython and radian both use prompt-toolkit under the hood and it has the same issue
Screenshot 2024-01-17 at 10 31 17 PM

So is this a prompt-toolkit bug?

Would it be possible to report it?

I don't know prompt-toolkit internals.

It is kind of an expected behavior. First search if there are any similar issues upstream. Though I don't anticipate it could be fixed though, it depends on how a terminal interacts when font size is changed. There's simply no single solution to fix all situations.