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

Wrong colors after executing bat #965

Closed
JekRock opened this issue Apr 30, 2020 · 2 comments
Closed

Wrong colors after executing bat #965

JekRock opened this issue Apr 30, 2020 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@JekRock
Copy link

JekRock commented Apr 30, 2020

What version of bat are you using?
bat 0.15.0

Describe the bug you encountered:

  1. Install bat via chocolatey
  2. Create a text file with content that doesn't fit into a screen height
  3. In Windows Terminal (powershell) push ENTER while the output takes more than the screen height
  4. Open the file created at the second step with the command bat filename
  5. Press q
  6. Now the output has wrong colors that get back to previous colors after a few commands or after the clear command

Describe what you expected to happen?
Colors should remain the same after executing the bat util

Here is the command prompt before performing anything

Annotation 2020-04-28 170844
The expected bat util output
Annotation 2020-04-28 171203
The bat util output after performing 1-4 steps. Please notice that the ":" in the bottom left corner is now black
Annotation 2020-04-28 171303
The console prompt after performing all described steps
Annotation 2020-04-28 171342

Also, colors remain unchanged if the bat util command is executed right after the clear command

How did you install bat?
Chocolatey


Windows build number: 10.0.18363.0

@JekRock JekRock added the bug Something isn't working label Apr 30, 2020
@sharkdp
Copy link
Owner

sharkdp commented Apr 30, 2020

Thank you for reporting this.

This sounds a lot like #860. Is it related?

@JekRock
Copy link
Author

JekRock commented Apr 30, 2020

Yes, it seems to be the same issue. Thanks for pointing out

@sharkdp sharkdp added the duplicate This issue or pull request already exists label May 1, 2020
@sharkdp sharkdp closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants