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

Rework terminal input handling #23

Open
pfalcon opened this issue Dec 25, 2017 · 0 comments
Open

Rework terminal input handling #23

pfalcon opened this issue Dec 25, 2017 · 0 comments

Comments

@pfalcon
Copy link
Owner

pfalcon commented Dec 25, 2017

Currently, picotui assumes that a single read from terminal returns a single integral sequence of bytes corresponding to:

  1. A complete escape sequence.
  2. A complete UTF-8 char.

This kinda works on a non-loaded Linux system, but doesn't hold in the general case: what the terminal outputs are just raw bytes, and sequences can be partitioned in any way among them, e.g. not complete sequences can be read, or multiple sequences can be read at once, or arbitrary mix thereof.

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

No branches or pull requests

1 participant