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 broken readline package #4199

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Fix broken readline package #4199

merged 1 commit into from
Oct 25, 2022

Conversation

SeanTAllen
Copy link
Member

With the release of 0.49.0, we changed Ansi.erase to be erasing left rather than right. This made sense based on the comment on the Ansi.erase method. However, the actual usage in the standard library of Ansi.erase was expecting it to erase to the right. Because of this change, since 0.49.0, the readline support in the term package has been broken.

This commit switches erase back to erasing to the right and in the process fixes the readline package. The commment on erase has been updated to reflect what it actually does.

Supporting erasing to both the left and the right seems valuable but, I'm not addressing that here and instead am leaving that to an RFC.

@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Oct 23, 2022
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Oct 23, 2022
@SeanTAllen SeanTAllen requested a review from a team October 23, 2022 14:32
@SeanTAllen
Copy link
Member Author

Windows failure is unrelated. We are back to the "it times out" problem again.

With the release of 0.49.0, we changed `Ansi.erase` to be erasing left
rather than right. This made sense based on the comment on the `Ansi.erase`
method. However, the actual usage in the standard library of `Ansi.erase`
was expecting it to erase to the right. Because of this change, since
0.49.0, the readline support in the `term` package has been broken.

This commit switches erase back to erasing to the right and in the process
fixes the readline package. The commment on `erase` has been updated to
reflect what it actually does.

Supporting erasing to both the left and the right seems valuable but, I'm
not addressing that here and instead am leaving that to an RFC.
@SeanTAllen SeanTAllen merged commit 256944c into main Oct 25, 2022
@SeanTAllen SeanTAllen deleted the ansi-erase branch October 25, 2022 18:15
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Oct 25, 2022
github-actions bot pushed a commit that referenced this pull request Oct 25, 2022
github-actions bot pushed a commit that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants