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

Add ANSI terminal "mocking" #1

Open
joachimschmidt557 opened this issue Aug 10, 2020 · 3 comments
Open

Add ANSI terminal "mocking" #1

joachimschmidt557 opened this issue Aug 10, 2020 · 3 comments

Comments

@joachimschmidt557
Copy link
Member

I think it would be nice to include a terminal emulator (basically an interpreter for ANSI escape sequences) in this repository as well. Something along the lines of https://github.com/selectel/pyte for example.

This would enable testing zig libraries and applications which use ANSI escape sequences for correct display without requiring a "real" terminal emulator like xterm and manually checking the output. Maybe this can even help in developing "real" full-featured terminal emulators.

@data-man
Copy link
Contributor

alacritty/vte and wezterm/vtparse based on A parser for DEC’s ANSI-compatible video terminals
Here is C-implementation: vtparse

@joachimschmidt557
Copy link
Member Author

@data-man Thanks for the material! I'll have a look at them before I can implement such a feature.

@joachimschmidt557
Copy link
Member Author

But maybe a full-featured VTE parser should belong into a new repository. Hmm

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

2 participants