@xterm/xterm 5.6.0-beta.101 → 5.6.0-beta.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/typings/xterm.d.ts +12 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "5.6.0-beta.
|
|
4
|
+
"version": "5.6.0-beta.103",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"ws": "^8.2.3",
|
|
108
108
|
"xterm-benchmark": "^0.3.1"
|
|
109
109
|
},
|
|
110
|
-
"commit": "
|
|
110
|
+
"commit": "2af170dbc91f4b1981bad5ca3f8dced6c0184790"
|
|
111
111
|
}
|
package/typings/xterm.d.ts
CHANGED
|
@@ -1265,21 +1265,31 @@ declare module '@xterm/xterm' {
|
|
|
1265
1265
|
|
|
1266
1266
|
/**
|
|
1267
1267
|
* 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.
|
|
1268
1272
|
* @param data The data to write to the terminal. This can either be raw
|
|
1269
1273
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
|
1270
1274
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
|
1271
1275
|
* @param callback Optional callback that fires when the data was processed
|
|
1272
|
-
* by the parser.
|
|
1276
|
+
* by the parser. This callback must be provided and awaited in order for
|
|
1277
|
+
* {@link buffer} to reflect the change in the write.
|
|
1273
1278
|
*/
|
|
1274
1279
|
write(data: string | Uint8Array, callback?: () => void): void;
|
|
1275
1280
|
|
|
1276
1281
|
/**
|
|
1277
1282
|
* 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.
|
|
1278
1287
|
* @param data The data to write to the terminal. This can either be raw
|
|
1279
1288
|
* bytes given as Uint8Array from the pty or a string. Raw bytes will always
|
|
1280
1289
|
* be treated as UTF-8 encoded, string data as UTF-16.
|
|
1281
1290
|
* @param callback Optional callback that fires when the data was processed
|
|
1282
|
-
* by the parser.
|
|
1291
|
+
* by the parser. This callback must be provided and awaited in order for
|
|
1292
|
+
* {@link buffer} to reflect the change in the write.
|
|
1283
1293
|
*/
|
|
1284
1294
|
writeln(data: string | Uint8Array, callback?: () => void): void;
|
|
1285
1295
|
|