-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Add print_rich() support to Debug Console #792
base: master
Are you sure you want to change the base?
Add print_rich() support to Debug Console #792
Conversation
Does this PR close #791? |
|
Do ANSI positioning escape codes not work in VSCode? |
I didn't know there were ANSI positioning escape codes. Most apps seem to query your terminal width so that they can center or right-align text. There are ways to query this terminal width across terminals, but it requires specific APIs that are not cross-platform between Windows and POSIX. See this |
It's documented as "Cursor Position" sequence on Wikipedia. I'm not sure if it's generally implemented, though. |
That escape code is about moving the caret (e.g. for CLI text editors with mouse support). |
This looks very useful for filtering information in the debug log! If this should be separated, I could make a new PR after this one is merged. |
@MichaelXt Sorry to tag you into an unrelated PR, but: https://github.com/godotengine/godot-vscode-plugin/actions/runs/13291410139/job/37126617646?pr=792#step:9:293 Is this the flaky test you mentioned before? |
Yes it is. I've bumped the timeout for the test in latest PR. For now please retry the actions workflow. |
Since |
Limitations:
Tested working on Linux, Windows
Tested working on Godot4.4b3, Godot4.3, Godot3.6
using this to parse https://github.com/jnoel-dev/bbcode-to-ansi based on @Calinou 's https://github.com/Calinou/godot-bbcode-to-ansi
before

after
