Merge branch 'write_enhancement' of github.com:jerch/xterm.js into write_enhancement
This commit is contained in:
Vendored
+10
-10
@@ -651,21 +651,21 @@ declare module 'xterm' {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Write data to the terminal.
|
* Write data to the terminal.
|
||||||
* `data` can either be raw bytes given as Uint8Array from the pty or a string.
|
* @param data The data to write to the terminal. This can either be raw
|
||||||
* Raw bytes will always be treated as UTF-8 encoded, string data as UTF-16.
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
||||||
* `callback` is an optional callback that gets called once the data
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* chunk was processed by the parser.
|
* @param callback Optional callback that fires when the data was processed
|
||||||
* @param data The data to write to the terminal.
|
* by the parser.
|
||||||
* @param callback Optional callback when data was processed.
|
|
||||||
*/
|
*/
|
||||||
write(data: string | Uint8Array, callback?: () => void): void;
|
write(data: string | Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes data to the terminal, followed by a break line character (\n).
|
* Writes data to the terminal, followed by a break line character (\n).
|
||||||
* `callback` is an optional callback that gets called once the data
|
* @param data The data to write to the terminal. This can either be raw
|
||||||
* chunk was processed by the parser.
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
||||||
* @param data The data to write to the terminal.
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* @param callback Optional callback when data was processed.
|
* @param callback Optional callback that fires when the data was processed
|
||||||
|
* by the parser.
|
||||||
*/
|
*/
|
||||||
writeln(data: string | Uint8Array, callback?: () => void): void;
|
writeln(data: string | Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user