Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing font size generate another prompt #458

Open
6801318d8d opened this issue Jan 13, 2024 · 6 comments
Open

Increasing font size generate another prompt #458

6801318d8d opened this issue Jan 13, 2024 · 6 comments

Comments

@6801318d8d
Copy link

6801318d8d commented Jan 13, 2024

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
Copy link

raffaem commented Jan 18, 2024

Still happening in 0.6.10

@randy3k
Copy link
Owner

randy3k commented Jan 18, 2024

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

@raffaem
Copy link

raffaem commented Jan 18, 2024

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

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

@randy3k
Copy link
Owner

randy3k commented Jan 18, 2024

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
Copy link

raffaem commented Jan 18, 2024

So is this a prompt-toolkit bug?

Would it be possible to report it?

I don't know prompt-toolkit internals.

@randy3k
Copy link
Owner

randy3k commented Jan 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants