-
Notifications
You must be signed in to change notification settings - Fork 76
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
-C
uses last pipe colour from previous invocation
#22
Comments
Using st-0.7 and xterm-297 on Linux, this issue doesn't happen, @parkercoates, what's your OS and terminal emulator? As you have mentioned #5, 3816faf was made to fix this issue, this should be the same to be fixed in #5, apparently it didn't fix for all. What exactly did you do to reproduce the bug? Run the command and immediately press Q, I even tried
to fill up the screen, but still can't reproduce. If it's confirmed by others, then we could take |
@livibetter, you're right that this issue is dependent on the environment. I can reproduce the issue with If you wanted to give me a minimal test case to try, I'd be happy to take the issue up with the Konsole developers. |
@parkercoates I can't give you a minimal test case since I don't have KDE/konsole to create one with. However, since it's konsole, it should have good amount of users, I'd vote for the I also wonder what if #34 is also the same, all depending on the environment. This repo needs an issue report template/form for those information to be filled in when reporting. |
The second proposed method, by @parkercoates in pipeseroni#22, can be implemented safely for terminal emulators which are not affected by the issue.
The second proposed method, by @parkercoates in pipeseroni#22, can be implemented safely for terminal emulators which are not affected by the issue.
If I run
pipes.sh; pipes.sh -C
, instead of drawing without colour, the second invocation always draws with the last colour drawn from the first invocation. Obviously some terminal escape state is lying around. This seems related to, but distinct from, #5.I'm no expert on
tput
and friends, but I see two potential ways of fixing this, which both seem to work.Insert a call to
tput reset
just before entering the main animation loop. This ensures that drawing always starts from a clean state.Insert a call to
tput reset
intocleanup
. This ensures that the script always cleans up after itself.Personally I think the second option seems more responsible, but it could be that there's a third option that makes more sense. Again, I'm no expert on this stuff.
The text was updated successfully, but these errors were encountered: