-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Wrong bracket when echo formatting in brackets #396
Comments
Having similar issue with unix formatting + color formatting, i am trying to render some c/assembly text that uses color code and [] brackets. term.echo("�[0m[�[36m�[33m0x109de1d4�[0m]�[36m�[0m�[0m�[31m") Unix formatting produce the following string which does not seem to render correctly. PS: It looks like the following characters [ and ] when mixed with color coding tags, cause some odd behavior. I looked a jquery.terminal and it looks like it may be the way you are splitting the tokens. My guess is that it has something to do with using parser vs regex that may be causing this behavior. |
There was two problems one in nested formatting function and the second was in extended commands, your example was invoking commands. And the problem was regex |
Expected behavior
formatting in brackets:
should display
[hello]
with text as white.Actual behavior
it shows:
[hello][
(in prompt it's fine, so it's only for echo).The text was updated successfully, but these errors were encountered: