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

Suggest to add description for ANSI color sequence matching #192

Open
clarkttfu opened this issue May 7, 2021 · 0 comments
Open

Suggest to add description for ANSI color sequence matching #192

clarkttfu opened this issue May 7, 2021 · 0 comments

Comments

@clarkttfu
Copy link

Hi there,

In my case, the server returns colored shell prompt, so I have to change the shellPrompt to something like:

[\x1B[00;33mroot@hostname\x1B[00m:\x1B[01;94m/root\x1B[00m]#

  • \x1B[ is the control sequence prefix
  • 00 means reset the SGR
  • 33 means set the following to yellow
  • they are separated by ;.

More info here

Clark

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

1 participant