Move function to CoreTerminal, add additional argument to specify if the input was user input or not.

This commit is contained in:
arencoskun
2024-02-01 14:11:29 +03:00
parent 09a0dd658d
commit cae42772e8
6 changed files with 22 additions and 15 deletions
+5 -1
View File
@@ -966,8 +966,12 @@ declare module '@xterm/xterm' {
/**
* Input data to application side.
* The data is treated the same way as typed input at the terminal (will appear in the onData event).
* wasUserInput indicates, whether the input is genuine user input.
* It is true by default and triggers additional actions like prompt focus or selection clearing.
* Set it to false if your data sent does not resemble what a user would have typed
* (e.g. sequence embedded data).
*/
input(data: string): void;
input(data: string, wasUserInput?: boolean): void;
/**
* Resizes the terminal. It's best practice to debounce calls to resize,