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

feat: PTY output parser #4

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: PTY output parser #4

wants to merge 2 commits into from

Conversation

tomlin7
Copy link
Owner

@tomlin7 tomlin7 commented Apr 18, 2024

Properly parsing the ANSI escape codes


fix #1
fix #2
fix #3

@tomlin7 tomlin7 marked this pull request as draft April 18, 2024 19:21
@Moosems
Copy link

Moosems commented Jul 23, 2024

You're a madlad for doing this and I respect it all the way 🫡

@tomlin7
Copy link
Owner Author

tomlin7 commented Jul 23, 2024

@Moosems i have only added the templates so far and the base handler. I'd love to receive some help with the implementations though ❤️

@Moosems
Copy link

Moosems commented Jul 23, 2024

I will certainly try, but theres no guarantee I'll be much help. I'd say the easiest character to start with is the Carriage Return, though we will likely have to keep track of the visible string and actual string separately:

x = "xy\r\rza"
print(x)
# Prints "za"

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.

Multiple lines for single action First letter is repeated clear has no effect
2 participants