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

geometry swallows output without trailing \n #306

Closed
itsxaos opened this issue Feb 8, 2021 · 2 comments
Closed

geometry swallows output without trailing \n #306

itsxaos opened this issue Feb 8, 2021 · 2 comments

Comments

@itsxaos
Copy link
Contributor

itsxaos commented Feb 8, 2021

Command output lacking a terminating newline gets overwritten by the prompt

2021-02-08×11:15:46
Screenshot: default zsh prompt first, then geometry

The default zsh prompt adds the newline when it's missing (marked by the inverted % ), but unfortunately this not only does not work with geometry, it also "swallows" the output, overwriting it with the prompt.
The output does show up very briefly, but the prompt overwrites it.

I also tested it with GEOMETRY_PROMPT=(geometry_newline) but that does not help, it overwrites the output with an empty line.

To Reproduce
echo -n "Test123 :^)"

Tested on
Archlinux, with Alacritty and xfce4-terminal

@itsxaos
Copy link
Contributor Author

itsxaos commented Feb 8, 2021

I looked into this issue some more and it seems to be an issue with marlonrichert/zsh-snap and its znap prompt. It does not occur when I source geometry.zsh normally.
Sorry about that!

@itsxaos itsxaos closed this as completed Feb 8, 2021
@torarnv
Copy link

torarnv commented Feb 10, 2021

In my case this was due to having unsetopt prompt_s in my configuration.

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