Skip to content

term.buffer.active.getLine can't get the ansi data written by write? #5113

Answered by jerch
alanhe421 asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot get the original terminal sequence from the terminal buffer, as it contains the state after processing sequences.

Furthermore the sequence you want to use is not supported by xterm.js. It is a private one from iterm2. Means xterm.js will silently swallow it not processing anything. You can prolly extract the data of the sequence with preparsing the incoming data stream. Whether it is worth the trouble - idk.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alanhe421
Comment options

@alanhe421
Comment options

@jerch
Comment options

@alanhe421
Comment options

Answer selected by alanhe421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants