randy3k / radian

A 21 century R console
MIT License
2.03k stars 76 forks source link

Increasing font size generate another prompt #458

Open 6801318d8d opened 10 months ago

6801318d8d commented 10 months ago

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

raffaem commented 10 months ago

Still happening in 0.6.10

randy3k commented 10 months ago

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

raffaem commented 10 months ago

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

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

randy3k commented 10 months ago

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

raffaem commented 10 months ago

So is this a prompt-toolkit bug?

Would it be possible to report it?

I don't know prompt-toolkit internals.

randy3k commented 10 months ago

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.