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

Implement basic ANSI escape support in textarea console #203

Closed
nununoisy opened this issue Apr 5, 2018 · 4 comments
Closed

Implement basic ANSI escape support in textarea console #203

nununoisy opened this issue Apr 5, 2018 · 4 comments

Comments

@nununoisy
Copy link

Implementation of ANSI control sequences in the serial console. The ones that would probably be best to implement in my opinion is ^[J (backspace), ^[2J (clear screen), and ^[[H (cursor home).

I don’t expect a perfect implementation though. Just hard to correct a Linux command when it looks like c[Jat /pr[[[Joc/sysin[[Jfo

@copy
Copy link
Owner

copy commented Apr 5, 2018

Good idea.

@nununoisy
Copy link
Author

Check this pull request out @copy. Very, very basic but it should work for now.
Not much more can be done unless we add some sort of screen memory for cursor management.
#204

@pitust
Copy link

pitust commented May 20, 2019

I'd go for using something like xtermjs. It would be way simpler to do than coding it on your own.

@copy
Copy link
Owner

copy commented Jan 4, 2021

There's xterm.js support now by passing serial_container_xtermjs: document.getElementById("#xterm") to V86Starter. It's also used on the website (e.g., https://copy.sh/v86/?profile=buildroot has a coloured terminal)

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

3 participants