Skip to content

Commit e5b838a

Browse files
committed
scrollOnDisplayErase -> scrollOnEraseInDisplay
1 parent cd23a21 commit e5b838a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/common/InputHandler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,13 @@ describe('InputHandler', () => {
438438
inputHandler.eraseInLine(Params.fromArray([2]));
439439
assert.equal(bufferService.buffer.lines.get(2)!.isWrapped, false);
440440
});
441-
it('ED2 with scrollOnDisplayErase turned on', async () => {
441+
it('ED2 with scrollOnEraseInDisplay turned on', async () => {
442442
const inputHandler = new TestInputHandler(
443443
bufferService,
444444
new MockCharsetService(),
445445
new MockCoreService(),
446446
new MockLogService(),
447-
new MockOptionsService({ scrollOnDisplayErase: true }),
447+
new MockOptionsService({ scrollOnEraseInDisplay: true }),
448448
new MockOscLinkService(),
449449
new MockCoreMouseService(),
450450
new MockUnicodeService()

src/common/InputHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ export class InputHandler extends Disposable implements IInputHandler {
12201220
this._dirtyRowTracker.markDirty(0);
12211221
break;
12221222
case 2:
1223-
if (this._optionsService.rawOptions.scrollOnDisplayErase) {
1223+
if (this._optionsService.rawOptions.scrollOnEraseInDisplay) {
12241224
j = this._bufferService.rows;
12251225
this._dirtyRowTracker.markRangeDirty(0, j - 1);
12261226
while (j--) {

src/common/services/OptionsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const DEFAULT_OPTIONS: Readonly<Required<ITerminalOptions>> = {
3232
logLevel: 'info',
3333
logger: null,
3434
scrollback: 1000,
35-
scrollOnDisplayErase: false,
35+
scrollOnEraseInDisplay: false,
3636
scrollOnUserInput: true,
3737
scrollSensitivity: 1,
3838
screenReaderMode: false,

src/common/services/Services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export interface ITerminalOptions {
254254
windowOptions?: IWindowOptions;
255255
wordSeparator?: string;
256256
overviewRuler?: IOverviewRulerOptions;
257-
scrollOnDisplayErase?: boolean;
257+
scrollOnEraseInDisplay?: boolean;
258258

259259
[key: string]: any;
260260
cancelEvents: boolean;

typings/xterm-headless.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ declare module '@xterm/headless' {
191191
* erased text to scrollback, instead of clearing only the viewport portion.
192192
* This emulates PuTTY's default clear screen behavior.
193193
*/
194-
scrollOnDisplayErase?: boolean;
194+
scrollOnEraseInDisplay?: boolean;
195195

196196
/**
197197
* The scrolling speed multiplier used for adjusting normal scrolling speed.

typings/xterm.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ declare module '@xterm/xterm' {
262262
* erased text to scrollback, instead of clearing only the viewport portion.
263263
* This emulates PuTTY's default clear screen behavior.
264264
*/
265-
scrollOnDisplayErase?: boolean;
265+
scrollOnEraseInDisplay?: boolean;
266266

267267
/**
268268
* Whether to scroll to the bottom whenever there is some user input. The

0 commit comments

Comments
 (0)