@tomradex/pty-host 0.26.0 → 0.27.0
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/dist/pane.d.ts +7 -0
- package/dist/render.d.ts +15 -0
- package/package.json +2 -2
package/dist/pane.d.ts
CHANGED
|
@@ -62,12 +62,16 @@ export declare class Pane {
|
|
|
62
62
|
private seq;
|
|
63
63
|
/** Cancels the paint on its way, if one is. */
|
|
64
64
|
private painting;
|
|
65
|
+
/** When the paint waiting on a timer is due; 0 while none does. */
|
|
66
|
+
private dueAt;
|
|
65
67
|
private paintedAt;
|
|
66
68
|
/** How far apart paints are now, and since when output has come within a frame of every paint (0 after a quiet frame). */
|
|
67
69
|
private frameMs;
|
|
68
70
|
private busySince;
|
|
69
71
|
private lastScroll;
|
|
70
72
|
private readonly cell;
|
|
73
|
+
/** The rows of the screen last read, so an unchanged one is not read again. */
|
|
74
|
+
private readonly rows;
|
|
71
75
|
/** Modes the public API does not report, read off the program's own sequences. */
|
|
72
76
|
private cursorVisible;
|
|
73
77
|
private cursorStyle;
|
|
@@ -120,6 +124,9 @@ export declare class Pane {
|
|
|
120
124
|
* every paint for `BUSY_MS` is painted every `BUSY_FRAME_MS`, until a frame goes by without any.
|
|
121
125
|
*/
|
|
122
126
|
private schedule;
|
|
127
|
+
/** Paints right after this turn of the event loop: what else came in this turn goes with it. */
|
|
128
|
+
private paintSoon;
|
|
129
|
+
private cancelPaint;
|
|
123
130
|
private flush;
|
|
124
131
|
private frame;
|
|
125
132
|
private tellScroll;
|
package/dist/render.d.ts
CHANGED
|
@@ -23,6 +23,21 @@ export declare function renderRow(line: IBufferLine | undefined, cols: number, c
|
|
|
23
23
|
text: string;
|
|
24
24
|
width: number;
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* The rows of the last screen painted, by xterm's own line, with the words they were painted from: a row whose words
|
|
28
|
+
* are the same paints the same, so it is not read cell by cell again, and its text is the very string it was (which a
|
|
29
|
+
* diff compares and hashes for nothing). A row with a cell kept outside its words is always read again.
|
|
30
|
+
*/
|
|
31
|
+
export declare class RowCache {
|
|
32
|
+
private rows;
|
|
33
|
+
private next;
|
|
34
|
+
render(line: IBufferLine | undefined, cols: number, cell: IBufferCell): {
|
|
35
|
+
text: string;
|
|
36
|
+
width: number;
|
|
37
|
+
};
|
|
38
|
+
/** The screen is read: only its rows are kept for the next one. */
|
|
39
|
+
done(): void;
|
|
40
|
+
}
|
|
26
41
|
/** Paints a whole screen over whatever the window showed. */
|
|
27
42
|
export declare function fullFrame(screen: Screen): string;
|
|
28
43
|
/** Rows `top`..`bottom` (inclusive) moved up `by`: what was below comes up, blank rows come in at the bottom. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomradex/pty-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Haoyuan Tang",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tomradex/contracts": "0.
|
|
34
|
+
"@tomradex/contracts": "0.27.0",
|
|
35
35
|
"@tomradex/domain": "0.2.33",
|
|
36
36
|
"cordis": "4.0.0-rc.8"
|
|
37
37
|
},
|