-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Terminal API: clarify onData event #48516
Comments
@bpasero opps I didn't include jsdoc for it.
This is not what it is, it's data from the raw pty, including escape sequences. That's why #48517 is as expected; because on Windows it redraws the screen whenever you resize. I'll clarify in a comment 👍 |
@Tyriar and what is the use case for having this API? |
export interface Terminal {
/**
* Fires when the terminal's pty slave pseudo-device is written to. In other words, this
* provides access to the raw data stream from the process running within the terminal,
* including ANSI sequences.
*/
onData: Event<string>;
} |
@bpasero enabling multiplexing of the terminal. |
I strongly suggest to stay away from the word |
@bpasero that's the technical term and helps describe exactly what it does, there is a master and a slave side to the pty https://en.wikipedia.org/wiki/Pseudoterminal |
Dunno, at one point we got bashed for using words such as |
I think this is a little different though as it's an established technical term of which there is no other name, not a UI paradigm we're introducing. |
Refs: #48434
I am a bit confused what the
onData
event for the terminal API actually provides me. It seems to me that each keystroke I do is reflected (even when I press backspace I get some weird[K
showing up). I think this deserves more documentation and possibly also a different name. E.g. if this is about notifying whenever something is showing in the integrated terminal, should it beonText
oronOutput
instead?The text was updated successfully, but these errors were encountered: