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

Feature/gmcp ansi #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Feature/gmcp ansi #10

wants to merge 2 commits into from

Conversation

eirikb
Copy link

@eirikb eirikb commented Jan 11, 2022

Add support for ANSI in GMCP messages.
Some servers - looking at you aardwolf - will include the ESC char directly in the JSON.
This makes the JSON invalid. This fix replaces the ESC sequence with escaped string char.
ANSI should come out correct.

  • emit errors.

Emit error upon error.
There was as parse error, and the program would simply halt.
With this fix an error will propagate to 'error' listeners.
Still seems to halt, but at least one can know why.
Add support for ANSI in GMCP messages.
Some servers - looking at you aardwolf - will include the ESC char directly in the JSON.
This makes the JSON invalid. This fix replaces the ESC sequence with escaped string char.
ANSI should come out correct.
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

Successfully merging this pull request may close these issues.

1 participant