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

the prompt in the middle of the screen #1

Open
anki-code opened this issue Jun 5, 2023 · 3 comments
Open

the prompt in the middle of the screen #1

anki-code opened this issue Jun 5, 2023 · 3 comments

Comments

@anki-code
Copy link
Owner

From @StitiFatah:

Using xonsh-prewarmed you can reserve xonsh session in background.

Thanks works like a charm, but is there any particular reason it spawns the prompt in the middle of the screen and not at the top (requiring to use clear )? Tested with kitty alacritty and xterm

xonsh_middle_screen

@anki-code
Copy link
Owner Author

anki-code commented Jun 5, 2023

Hi @StitiFatah!
It depends on how GNU Screen is working and it is pretty old tool. I didn't try to find a solution.
It will be cool to implement the same logic in modern window managers like tmux.
If anybody find the solution for Screen feel free to make a PR.

@StitiFatah
Copy link

StitiFatah commented Jun 5, 2023

Hi and thanks for your response ! I unfortunately don't use tmux, It's a minor annoyance anyway but in a hacky way isn't there a way to perform a clear immediately after the prompt is available ?

@anki-code
Copy link
Owner Author

anki-code commented Jun 5, 2023

Ah, I realized. Because we prewarm xonsh in the background the actual window size is not known. You can also use Ctrl+L to clear the screen.

Please also update xonsh to 0.14.0 e.g. xpip install -U xonsh.

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