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

CTRL+L doesn't show upper segments #8

Closed
fedemengo opened this issue Dec 15, 2018 · 2 comments
Closed

CTRL+L doesn't show upper segments #8

fedemengo opened this issue Dec 15, 2018 · 2 comments

Comments

@fedemengo
Copy link

fedemengo commented Dec 15, 2018

The issue arises when I'm clearing the screen. If I use clear it works perfectly (it clears the screen and both upper and lower segments are displayed)

before

clear

However, when I use CTRL+L the screen is cleared but the upper segments are not displayed

ctrl l

Any idea on how I can fix this?

@fedemengo fedemengo changed the title CTRL+L doesn't print prompt CTRL+L doesn't show upper prompt Dec 15, 2018
@fedemengo fedemengo changed the title CTRL+L doesn't show upper prompt CTRL+L doesn't show upper segments Dec 15, 2018
@yardnsm
Copy link
Owner

yardnsm commented Dec 17, 2018

In order to fix some weird redrawing on resize issue (described in #2), some changes were made to the rendering mechanism (specifically c265772), which first prints the upper segment and sets $PROMPT to the lower segments. This is why then using CTRL+L only the lower segments get re-rendered.

We can set $PROMPT to also include the upper segments (like before the changes in c265772), but we'll get the resize problems back.

A solution for this could be some config variable to control this behaviour, but I can't think of one with a proper name 😋. Thoughts?

@fedemengo
Copy link
Author

fedemengo commented Dec 17, 2018

What about UNIFIED_PROMPT?

Thanks for the useful info, I've been doing some experiments and I understand why you decided to implement it this way.
It seems that the redrawing-on-resize issue is a common problem to several themes

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

2 participants