-
Notifications
You must be signed in to change notification settings - Fork 23
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
Moar modifies prompt characters #258
Comments
|
I downloaded Then I started the default (XFCE) terminal and made a I opened that in moar v1.28.2. When I press I then tried Same thing though, no repro. So the question now is how your system is different from mine? Here's my #!/bin/bash
echo "hello world!" |
In your image (see below), moar exits, but moar's UI is still there right before the prompt. This is weird, since moar uses the Alternative Screen for all its drawing. When moar exits it switches back. Switching back should at least make moar's UI disappear before moar terminates. If the alternate screen implementation in the terminals where you reproduced this was broken, that could explain it, but:
|
No, my setup for the first bug is the simplest possible:
The second bug requires export BAT_PAGER='moar -no-linenumbers -quit-if-one-screen' environment variable. It is also reproducible with the pure base void live image if However, unlike the first bug, it is reproducible outside the linux console. So far I reproduced it in st and WezTerm. Here is the reproduction of the bug with bat on Windows 11 (Powershell 7.4.6), in WezTerm (wezterm 20240203-110809-5046fc22): |
I tried out moar in (void) linux console with

moar hello.sh
and for some reason it modifies the characters of the prompt:Interestingly
eza
orls
resets the prompt characters.For curiosity, I tried out bat with moar as pager I also get a similar but different prompt character modification:

In console
eza
orls
resets the characters.For bat
export BAT_PAGER='moar -no-linenumbers -quit-if-one-screen
.The latter moar bat behaviour is also present in simple terminal:

However only
eza
resets the character.For the same use cases,
less
do not present these behaviours.On windows 10 and 11, in the latest WezTerm, I experience the same behaviour with bat, when the content is smaller than one screen.
The text was updated successfully, but these errors were encountered: