radian icon indicating copy to clipboard operation
radian copied to clipboard

Increasing font size generate another prompt

Open 6801318d8d opened this issue 2 years ago • 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

6801318d8d avatar Jan 13 '24 10:01 6801318d8d

Still happening in 0.6.10

raffaelemancuso avatar Jan 18 '24 00:01 raffaelemancuso

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

randy3k avatar Jan 18 '24 02:01 randy3k

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

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

raffaelemancuso avatar Jan 18 '24 05:01 raffaelemancuso

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

randy3k avatar Jan 18 '24 06:01 randy3k

So is this a prompt-toolkit bug?

Would it be possible to report it?

I don't know prompt-toolkit internals.

raffaelemancuso avatar Jan 18 '24 08:01 raffaelemancuso

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.

randy3k avatar Jan 18 '24 16:01 randy3k