diff --git a/src/misc.gd b/src/misc.gd index 8cca428..04947ef 100644 --- a/src/misc.gd +++ b/src/misc.gd @@ -123,6 +123,10 @@ func stringarray_to_array(array: Array[String]) -> Array: return output # +++ etc +++ +## Returns \ so you can (for example) print ANSI codes, which isn't normally possible because of GDScript restrictions. +func get_escape() -> String: + return PackedByteArray([0x1b]).get_string_from_ascii() + ## Calculates the center of the child in the area of the parent.[br] ## [br] ## Example: