-
Getting each line of data via term.buffer.active.getLine, is it still possible to get the Escape Sequence written by write? For example, I'd like to go and find out this information in the terminal line header
I want to get the CurrentDir When I pass |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.