@xterm/xterm 6.1.0-beta.8 → 6.1.0-beta.9
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/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +1 -1
- package/lib/xterm.mjs.map +2 -2
- package/package.json +2 -2
- package/src/common/CoreTerminal.ts +1 -3
- package/src/common/buffer/Buffer.ts +2 -2
- package/src/common/services/OptionsService.ts +0 -2
- package/src/common/services/Services.ts +0 -3
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": "6.1.0-beta.
|
|
4
|
+
"version": "6.1.0-beta.9",
|
|
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": "269d8c20aed41b71c743690b1fe70d82dbd420d6"
|
|
111
111
|
}
|
|
@@ -132,7 +132,7 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
|
|
|
132
132
|
this._register(Event.forward(this.coreService.onBinary, this._onBinary));
|
|
133
133
|
this._register(this.coreService.onRequestScrollToBottom(() => this.scrollToBottom(true)));
|
|
134
134
|
this._register(this.coreService.onUserInput(() => this._writeBuffer.handleUserInput()));
|
|
135
|
-
this._register(this.optionsService.onMultipleOptionChange(['
|
|
135
|
+
this._register(this.optionsService.onMultipleOptionChange(['windowsPty'], () => this._handleWindowsPtyOptionChange()));
|
|
136
136
|
this._register(this._bufferService.onScroll(() => {
|
|
137
137
|
this._onScroll.fire({ position: this._bufferService.buffer.ydisp });
|
|
138
138
|
this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
|
|
@@ -255,8 +255,6 @@ export abstract class CoreTerminal extends Disposable implements ICoreTerminal {
|
|
|
255
255
|
const windowsPty = this.optionsService.rawOptions.windowsPty;
|
|
256
256
|
if (windowsPty && windowsPty.buildNumber !== undefined && windowsPty.buildNumber !== undefined) {
|
|
257
257
|
value = !!(windowsPty.backend === 'conpty' && windowsPty.buildNumber < 21376);
|
|
258
|
-
} else if (this.optionsService.rawOptions.windowsMode) {
|
|
259
|
-
value = true;
|
|
260
258
|
}
|
|
261
259
|
if (value) {
|
|
262
260
|
this._enableWindowsWrappingHeuristics();
|
|
@@ -181,7 +181,7 @@ export class Buffer implements IBuffer {
|
|
|
181
181
|
if (this._rows < newRows) {
|
|
182
182
|
for (let y = this._rows; y < newRows; y++) {
|
|
183
183
|
if (this.lines.length < newRows + this.ybase) {
|
|
184
|
-
if (this._optionsService.rawOptions.
|
|
184
|
+
if (this._optionsService.rawOptions.windowsPty.backend !== undefined || this._optionsService.rawOptions.windowsPty.buildNumber !== undefined) {
|
|
185
185
|
// Just add the new missing rows on Windows as conpty reprints the screen with it's
|
|
186
186
|
// view of the world. Once a line enters scrollback for conpty it remains there
|
|
187
187
|
this.lines.push(new BufferLine(newCols, nullCell));
|
|
@@ -298,7 +298,7 @@ export class Buffer implements IBuffer {
|
|
|
298
298
|
if (windowsPty && windowsPty.buildNumber) {
|
|
299
299
|
return this._hasScrollback && windowsPty.backend === 'conpty' && windowsPty.buildNumber >= 21376;
|
|
300
300
|
}
|
|
301
|
-
return this._hasScrollback
|
|
301
|
+
return this._hasScrollback;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
private _reflow(newCols: number, newRows: number): void {
|
|
@@ -19,7 +19,6 @@ export const DEFAULT_OPTIONS: Readonly<Required<ITerminalOptions>> = {
|
|
|
19
19
|
customGlyphs: true,
|
|
20
20
|
drawBoldTextInBrightColors: true,
|
|
21
21
|
documentOverride: null,
|
|
22
|
-
fastScrollModifier: 'alt',
|
|
23
22
|
fastScrollSensitivity: 5,
|
|
24
23
|
fontFamily: 'monospace',
|
|
25
24
|
fontSize: 15,
|
|
@@ -49,7 +48,6 @@ export const DEFAULT_OPTIONS: Readonly<Required<ITerminalOptions>> = {
|
|
|
49
48
|
rescaleOverlappingGlyphs: false,
|
|
50
49
|
rightClickSelectsWord: isMac,
|
|
51
50
|
windowOptions: {},
|
|
52
|
-
windowsMode: false,
|
|
53
51
|
windowsPty: {},
|
|
54
52
|
wordSeparator: ' ()[]{}\',"`',
|
|
55
53
|
altClickMovesCursor: true,
|
|
@@ -234,8 +234,6 @@ export interface ITerminalOptions {
|
|
|
234
234
|
disableStdin?: boolean;
|
|
235
235
|
documentOverride?: any | null;
|
|
236
236
|
drawBoldTextInBrightColors?: boolean;
|
|
237
|
-
/** @deprecated No longer supported */
|
|
238
|
-
fastScrollModifier?: 'none' | 'alt' | 'ctrl' | 'shift';
|
|
239
237
|
fastScrollSensitivity?: number;
|
|
240
238
|
fontSize?: number;
|
|
241
239
|
fontFamily?: string;
|
|
@@ -261,7 +259,6 @@ export interface ITerminalOptions {
|
|
|
261
259
|
smoothScrollDuration?: number;
|
|
262
260
|
tabStopWidth?: number;
|
|
263
261
|
theme?: ITheme;
|
|
264
|
-
windowsMode?: boolean;
|
|
265
262
|
windowsPty?: IWindowsPty;
|
|
266
263
|
windowOptions?: IWindowOptions;
|
|
267
264
|
wordSeparator?: string;
|