From 9df3542229f229dd039c530671370b582668607a Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 7 May 2024 21:35:00 +0200 Subject: [PATCH] Update to 15ec1073b6c70b49af9599d362489eeeadfb7ee4 --- src/misc.gd | 4 ++++ 1 file changed, 4 insertions(+) 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: