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

Better support ANSI escape codes #717

Closed
pavelbraginskiy opened this issue Jun 22, 2018 · 2 comments
Closed

Better support ANSI escape codes #717

pavelbraginskiy opened this issue Jun 22, 2018 · 2 comments

Comments

@pavelbraginskiy
Copy link

pavelbraginskiy commented Jun 22, 2018

It's great that Set-PSReadlineOption -Colors supports ANSI escape codes on Unix systems. However, it could support them better. These codes support more than just colors.

For example, my Paramter color setting is:

`e[2;3;255;102m 

This sets not just color, but also makes the parameter italic. Unfortunatly, PSReadLine doesn't clear formatting between words, so every word after that parameter it also in italics.

The workaround is to put the Clear Formatting escape code (`e[0m) at the start of every single symbol type's color setting, which also means I have to use ANSI for every color setting.

A better solution would be for PSReadLine to automatically write `e[0m between words on Unix systems.

@ExE-Boss
Copy link

Maybe write `e[0m between words on all systems, since Windows is moving to using ANSI escape codes too.

@daxian-dbw
Copy link
Member

This was fixed by #2925

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

No branches or pull requests

3 participants