Merge pull request #5317 from tabarra/docs/registerMarker-tip
docs: added usage tip for registerMarker()
This commit is contained in:
Vendored
+12
-2
@@ -833,21 +833,31 @@ declare module '@xterm/headless' {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Write data to the terminal.
|
* Write data to the terminal.
|
||||||
|
*
|
||||||
|
* Note that the change will not be reflected in the {@link buffer}
|
||||||
|
* immediately as the data is processed asynchronously. Provide a
|
||||||
|
* {@link callback} to know when the data was processed.
|
||||||
* @param data The data to write to the terminal. This can either be raw
|
* @param data The data to write to the terminal. This can either be raw
|
||||||
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
||||||
* be treated as UTF-8 encoded, string data as UTF-16.
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* @param callback Optional callback that fires when the data was processed
|
* @param callback Optional callback that fires when the data was processed
|
||||||
* by the parser.
|
* by the parser. This callback must be provided and awaited in order for
|
||||||
|
* {@link buffer} to reflect the change in the write.
|
||||||
*/
|
*/
|
||||||
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).
|
||||||
|
*
|
||||||
|
* Note that the change will not be reflected in the {@link buffer}
|
||||||
|
* immediately as the data is processed asynchronously. Provide a
|
||||||
|
* {@link callback} to know when the data was processed.
|
||||||
* @param data The data to write to the terminal. This can either be raw
|
* @param data The data to write to the terminal. This can either be raw
|
||||||
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
||||||
* be treated as UTF-8 encoded, string data as UTF-16.
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* @param callback Optional callback that fires when the data was processed
|
* @param callback Optional callback that fires when the data was processed
|
||||||
* by the parser.
|
* by the parser. This callback must be provided and awaited in order for
|
||||||
|
* {@link buffer} to reflect the change in the write.
|
||||||
*/
|
*/
|
||||||
writeln(data: string | Uint8Array, callback?: () => void): void;
|
writeln(data: string | Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
|
|||||||
Vendored
+12
-2
@@ -1265,21 +1265,31 @@ declare module '@xterm/xterm' {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Write data to the terminal.
|
* Write data to the terminal.
|
||||||
|
*
|
||||||
|
* Note that the change will not be reflected in the {@link buffer}
|
||||||
|
* immediately as the data is processed asynchronously. Provide a
|
||||||
|
* {@link callback} to know when the data was processed.
|
||||||
* @param data The data to write to the terminal. This can either be raw
|
* @param data The data to write to the terminal. This can either be raw
|
||||||
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
||||||
* be treated as UTF-8 encoded, string data as UTF-16.
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* @param callback Optional callback that fires when the data was processed
|
* @param callback Optional callback that fires when the data was processed
|
||||||
* by the parser.
|
* by the parser. This callback must be provided and awaited in order for
|
||||||
|
* {@link buffer} to reflect the change in the write.
|
||||||
*/
|
*/
|
||||||
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).
|
||||||
|
*
|
||||||
|
* Note that the change will not be reflected in the {@link buffer}
|
||||||
|
* immediately as the data is processed asynchronously. Provide a
|
||||||
|
* {@link callback} to know when the data was processed.
|
||||||
* @param data The data to write to the terminal. This can either be raw
|
* @param data The data to write to the terminal. This can either be raw
|
||||||
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
||||||
* be treated as UTF-8 encoded, string data as UTF-16.
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
||||||
* @param callback Optional callback that fires when the data was processed
|
* @param callback Optional callback that fires when the data was processed
|
||||||
* by the parser.
|
* by the parser. This callback must be provided and awaited in order for
|
||||||
|
* {@link buffer} to reflect the change in the write.
|
||||||
*/
|
*/
|
||||||
writeln(data: string | Uint8Array, callback?: () => void): void;
|
writeln(data: string | Uint8Array, callback?: () => void): void;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user