@ai-ecoverse/slicc-spectrum 1.65.1 → 1.65.2
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/README.md +1 -0
- package/dist/{chunk-XI74SELH.js → chunk-ZGJM5WUN.js} +4 -1
- package/dist/{chunk-XI74SELH.js.map → chunk-ZGJM5WUN.js.map} +2 -2
- package/dist/slicc-terminal.js +1 -1
- package/dist/slicc-ui.js +73 -30
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/terminals.d.ts +10 -2
- package/dist/types/slicc-terminal.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ Web components for SLICC: `<slicc-terminal>`, and SLICC's app UI on [Spectrum We
|
|
|
26
26
|
| `fit()` | Removes both attributes and fits the grid to the element. |
|
|
27
27
|
| `send(data)` | Sends a string or bytes to the backend, as if typed. |
|
|
28
28
|
| `write(data)` | Writes a string or bytes to the screen without involving the backend. |
|
|
29
|
+
| `redraw(data)` | Writes a string or bytes to the screen only, without answering any terminal query in it (for replaying history). |
|
|
29
30
|
| `signal(name)` | Sends `SIGINT`, `SIGTSTP`, `SIGQUIT` or `SIGHUP` to the backend. |
|
|
30
31
|
| `readText()` | Resolves with the text of the scrollback and the screen. |
|
|
31
32
|
| `focus()` | Focuses the terminal input. |
|
|
@@ -5303,6 +5303,9 @@ var SliccTerminal = class _SliccTerminal extends HTMLElement {
|
|
|
5303
5303
|
write(data) {
|
|
5304
5304
|
this.#output(data);
|
|
5305
5305
|
}
|
|
5306
|
+
redraw(data) {
|
|
5307
|
+
this.#term?.write(data);
|
|
5308
|
+
}
|
|
5306
5309
|
send(data) {
|
|
5307
5310
|
const bytes = typeof data === "string" ? encoder.encode(data) : data;
|
|
5308
5311
|
if (this.#session) this.#session.write(bytes);
|
|
@@ -5456,4 +5459,4 @@ export {
|
|
|
5456
5459
|
SliccTerminal,
|
|
5457
5460
|
define
|
|
5458
5461
|
};
|
|
5459
|
-
//# sourceMappingURL=chunk-
|
|
5462
|
+
//# sourceMappingURL=chunk-ZGJM5WUN.js.map
|