Skip to content

Commit 78fbae3

Browse files
committed
Add additional note to main doc
1 parent a8ead81 commit 78fbae3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

typings/xterm-headless.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,10 @@ declare module '@xterm/headless' {
833833

834834
/**
835835
* Write data to the terminal.
836+
*
837+
* Note that the change will not be reflected in the {@link buffer}
838+
* immediately as the data is processed asynchronously. Provide a
839+
* {@link callback} to know when the data was processed.
836840
* @param data The data to write to the terminal. This can either be raw
837841
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
838842
* be treated as UTF-8 encoded, string data as UTF-16.
@@ -844,6 +848,10 @@ declare module '@xterm/headless' {
844848

845849
/**
846850
* Writes data to the terminal, followed by a break line character (\n).
851+
*
852+
* Note that the change will not be reflected in the {@link buffer}
853+
* immediately as the data is processed asynchronously. Provide a
854+
* {@link callback} to know when the data was processed.
847855
* @param data The data to write to the terminal. This can either be raw
848856
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
849857
* be treated as UTF-8 encoded, string data as UTF-16.

typings/xterm.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,10 @@ declare module '@xterm/xterm' {
12651265

12661266
/**
12671267
* Write data to the terminal.
1268+
*
1269+
* Note that the change will not be reflected in the {@link buffer}
1270+
* immediately as the data is processed asynchronously. Provide a
1271+
* {@link callback} to know when the data was processed.
12681272
* @param data The data to write to the terminal. This can either be raw
12691273
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
12701274
* be treated as UTF-8 encoded, string data as UTF-16.
@@ -1276,6 +1280,10 @@ declare module '@xterm/xterm' {
12761280

12771281
/**
12781282
* Writes data to the terminal, followed by a break line character (\n).
1283+
*
1284+
* Note that the change will not be reflected in the {@link buffer}
1285+
* immediately as the data is processed asynchronously. Provide a
1286+
* {@link callback} to know when the data was processed.
12791287
* @param data The data to write to the terminal. This can either be raw
12801288
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
12811289
* be treated as UTF-8 encoded, string data as UTF-16.

0 commit comments

Comments
 (0)