Expose API method for writing to application side (#4948)

This commit is contained in:
arencoskun
2024-02-01 11:17:25 +03:00
parent 8e015ebf87
commit f1e563ad5f
5 changed files with 22 additions and 0 deletions
+6
View File
@@ -962,6 +962,12 @@ declare module '@xterm/xterm' {
* Focus the terminal.
*/
focus(): void;
/**
* Input data to application side.
* The data is treated the same way as typed input at the terminal (will appear in the onData event).
*/
input(data: string): void;
/**
* Resizes the terminal. It's best practice to debounce calls to resize,