Skip to content
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

Fix incorrect code returned by ANSI.erase #4022

Merged
merged 3 commits into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .release-notes/4022.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Fix incorrect code returned by `ANSI.erase`

`erase` was intended to erase all characters to the left of the cursor but was instead returning the code to erase all characters to the right.
2 changes: 1 addition & 1 deletion packages/term/ansi.pony
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ primitive ANSI
"""
Erases everything to the left of the cursor on the line the cursor is on.
"""
"\x1B[0K"
"\x1B[1K"

fun reset(): String =>
"""
Expand Down