Skip to content

Escape characters in the console that we can't show properly (fix #5324)#5343

Merged
dacap merged 1 commit into
aseprite:mainfrom
ckaiser:escape-characters
Aug 26, 2025
Merged

Escape characters in the console that we can't show properly (fix #5324)#5343
dacap merged 1 commit into
aseprite:mainfrom
ckaiser:escape-characters

Conversation

@ckaiser

@ckaiser ckaiser commented Aug 11, 2025

Copy link
Copy Markdown
Member

Fixes #5324

Example code:

local t = { table = 1 }
local b = false
local n = 5.333

print("a table:", t, "a boolean:", b, "a float value:", n)

print("\\a: \a")
print("\\b: \b")
print("\\f: \f")
print("\\n: \n")
print("\\r: \r")
print("\\t: \t")
print("\\v: \v")
print("\\r: \r")

Results

Before:
Screenshot 2025-08-11 161748
After:
Screenshot 2025-08-11 161704

@ckaiser ckaiser requested a review from dacap as a code owner August 11, 2025 19:24

@aseprite-bot aseprite-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/app/console.cpp
@ckaiser ckaiser assigned ckaiser and dacap and unassigned ckaiser Aug 11, 2025
@dacap dacap merged commit c575546 into aseprite:main Aug 26, 2025
12 checks passed
@dacap dacap added this to the v1.3.15 milestone Aug 26, 2025
@ckaiser ckaiser deleted the escape-characters branch September 10, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console shows unsupported character when calling print(a,b)

3 participants