From 017726318958d09f6e0c621f00bed5cafd827f9a Mon Sep 17 00:00:00 2001 From: Russell Matney Date: Thu, 6 Jun 2024 15:33:40 -0400 Subject: [PATCH] wip: vscode launch json, some basic ansi-code attempts --- .vscode/launch.json | 18 ++++++++++++++++++ src/ExampleScene.gd | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5e35db3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "GDScript: Launch Project", + "type": "godot", + "request": "launch", + "project": "${workspaceFolder}", + "debug_collisions": false, + "debug_paths": false, + "debug_navigation": false, + "additional_options": "", + } + ] +} \ No newline at end of file diff --git a/src/ExampleScene.gd b/src/ExampleScene.gd index f10c2c6..2d95b41 100644 --- a/src/ExampleScene.gd +++ b/src/ExampleScene.gd @@ -2,6 +2,9 @@ extends CanvasLayer func _enter_tree(): + print("some ansi code?") + print("\\033[31mHello\\033[0m") + Log.set_colors_pretty() # Log.disable_colors() @@ -38,3 +41,6 @@ func _ready(): Log.pr("disabled colors") print_rich(Log.to_pretty(1, {disable_colors=true})) + + print("\\033[31;1;4mHello\\033[0m") +