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

Preserve/Detect/Set terminal text color #27

Closed
ghost opened this issue May 19, 2016 · 8 comments
Closed

Preserve/Detect/Set terminal text color #27

ghost opened this issue May 19, 2016 · 8 comments
Labels

Comments

@ghost
Copy link

ghost commented May 19, 2016

It may be a problem with my configuration or perhaps how I am using your package, but when I attempt to run an asciimatics program, the text color of my terminal is switched from green to white, and I have to manually switch it back after I'm done playing with asciimatics.

It would be nice if this could be automated. If it is not convenient for asciimatics to reset the colors, could/does the package perhaps expose functions for detecting and setting the text color of the terminal? Or does it do so already and I just have some kind of configuration issue?

To clarify, I am referring to the text color of my shell when asciimatics is not running. Before running asciimatics, the text color is green; After running a my asciimatics program, it is white. I would like for it to remain green.

@ghost
Copy link
Author

ghost commented May 19, 2016

I'm not sure if this classifies as a bug, enhancement, or just user support, but thank you for any help.

@peterbrittain
Copy link
Owner

I can certainly try. Generally speaking, I already use the standard interfaces supported by the underlying OS to do a reset... I might be able to tweak that, but it will depend on the OS.

Can you please give me some more details of what your environment is and how you set up your default green text?

@ghost
Copy link
Author

ghost commented May 20, 2016

I'm using powershell on Windows 8.1.
To set the text color, I right click on the title bar, select properties, then select the colors tab.
Then I set the Screen Text value to the dark green color available in the palette.

@peterbrittain
Copy link
Owner

And which version of asciimatics are you running?

@ghost
Copy link
Author

ghost commented May 21, 2016

Right, 1.6.0

@peterbrittain
Copy link
Owner

OK - I think I see what's needed... Will see if I can patch it next week.

@ghost
Copy link
Author

ghost commented May 21, 2016

Thanks, you rock!

@peterbrittain
Copy link
Owner

OK - this is now fixed by 65156fc. I'll roll it out in the next major build - which should be v1.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant