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

Look into binary I/O #19

Closed
clue opened this issue May 17, 2015 · 3 comments
Closed

Look into binary I/O #19

clue opened this issue May 17, 2015 · 3 comments
Assignees
Milestone

Comments

@clue
Copy link
Owner

clue commented May 17, 2015

No description provided.

@clue
Copy link
Owner Author

clue commented Jun 3, 2015

This isn't terribly difficult, so just sharing a few links for now:

Input needs some reconsideration. It's probably easiest to go this route:

  • first parse any ANSI escape codes from the input stream and then only process the remaining bytes
  • The remaining bytes should be passed to the UTF-8 sequencer in order to collect individual unicode characters (consisting of multiple bytes)
  • Finally, ASCII control codes should be stripped (or possibly masked) from the input stream

Output can probably stay as-is, it's up to the consumer of this library to use binary and/or textual output.

@clue clue self-assigned this Jun 2, 2016
@clue
Copy link
Owner Author

clue commented Jun 2, 2016

The remaining bytes should be passed to the UTF-8 sequencer in order to collect individual unicode characters (consisting of multiple bytes)

For the reference: The UTF-8 sequencer is now available here: https://github.com/clue/php-utf8-react

first parse any ANSI escape codes from the input stream and then only process the remaining bytes

I'm currently working on releasing the control code parser as a separate package as well.

@clue
Copy link
Owner Author

clue commented Jun 3, 2016

I'm currently working on releasing the control code parser as a separate package as well.

For the reference: The terminal emulator is now available here: https://github.com/clue/php-term-react

I'm currently looking into integrating both libs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant