Skip to content

Export ANSI Escape Sequence Length Functions - #52

Open
engmtcdrm wants to merge 7 commits into
clipperhouse:masterfrom
engmtcdrm:export-ansi
Open

Export ANSI Escape Sequence Length Functions#52
engmtcdrm wants to merge 7 commits into
clipperhouse:masterfrom
engmtcdrm:export-ansi

Conversation

@engmtcdrm

@engmtcdrm engmtcdrm commented Jul 3, 2026

Copy link
Copy Markdown

This PR stems from looking around at how the graphemes package works while working on a terminal prompt package. I noticed that you have logic for identifying if a string/bytes are an ANSI escape sequence however it isn't exported. I want to be able to use it when parsing user input. I currently parse into graphemes with the graphemes package, but I cannot use the ANSI escape sequence booleans because of how i process input. My input buffer may chop the escape sequence into two passes if the escape sequence is at the end of the buffer's size. I think these functions are well fleshed out and others would find them useful.

@clipperhouse

Copy link
Copy Markdown
Owner

Seems reasonable, will have a look over the weekend. Thanks!

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.

2 participants