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

Purple - PowerShell #110

Closed
luishiguera opened this issue Aug 2, 2021 · 1 comment
Closed

Purple - PowerShell #110

luishiguera opened this issue Aug 2, 2021 · 1 comment

Comments

@luishiguera
Copy link

hello purple color not showing in powershell + oh my posh

PS + oh my posh
image

Windows Terminal + oh my posh
image

@borntyping
Copy link
Owner

It's likely "purple" in PowerShell translates to the same colour as the background colour. This isn't really something I can help - colorlog can't account for the configurations of all the different terminals out there.

You can configure colorlog to use a different colour for critical log messages which would work around the problem:

from colorlog import ColoredFormatter

formatter = ColoredFormatter(
	log_colors={
		'DEBUG':    'cyan',
		'INFO':     'green',
		'WARNING':  'yellow',
		'ERROR':    'red',
		'CRITICAL': 'red,bg_white',
	}
)

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