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

ANSI Escape Sequences #1022

Open
mgale opened this issue Sep 6, 2024 · 1 comment
Open

ANSI Escape Sequences #1022

mgale opened this issue Sep 6, 2024 · 1 comment

Comments

@mgale
Copy link

mgale commented Sep 6, 2024

Hello,

After reading the below issues with looks like the handling of ansi escape control sequences is not currently supported, can you confirm if that is the case still?

#24
#568
#746

Do you think the following approach could work?

I have an incoming bytes stream that I was writing directly to a textview but instead I can try:

  1. Reading the bytes stream into a parser first
  2. If I detect an escape control sequence, for example clearing the screen I can execute the appropriate tview change.
  3. If I do not detect an escape control sequence write the bytes to the textview.

Thanks

@rivo
Copy link
Owner

rivo commented Sep 7, 2024

can you confirm if that is the case still?

Apart from the ability to translate some common ANSI sequences into style tags, yes, this is still the case. Running an interactive application inside another application is the domain of utilities such as sceen or tmux and (currently) out of scope for tview.

instead I can try

Sure you can try that. I'm not familiar, however, with all the different ANSI sequences so I don't know if you'll be able to map them all to a TextView.

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