Expose paste API

Fixes #2390
This commit is contained in:
Daniel Imms
2019-08-22 08:39:02 -07:00
parent 5a9e6fe94b
commit 441d27cb5a
7 changed files with 55 additions and 15 deletions
+6
View File
@@ -669,6 +669,12 @@ declare module 'xterm' {
*/
writeUtf8(data: Uint8Array): void;
/**
* Writes text to the terminal, performing the necessary transformations for pasted text.
* @param data The text to write to the terminal.
*/
paste(data: string): void;
/**
* Retrieves an option's value from the terminal.
* @param key The option key.