mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
scrollOnDisplayErase -> scrollOnEraseInDisplay
This commit is contained in:
@@ -438,13 +438,13 @@ describe('InputHandler', () => {
|
||||
inputHandler.eraseInLine(Params.fromArray([2]));
|
||||
assert.equal(bufferService.buffer.lines.get(2)!.isWrapped, false);
|
||||
});
|
||||
it('ED2 with scrollOnDisplayErase turned on', async () => {
|
||||
it('ED2 with scrollOnEraseInDisplay turned on', async () => {
|
||||
const inputHandler = new TestInputHandler(
|
||||
bufferService,
|
||||
new MockCharsetService(),
|
||||
new MockCoreService(),
|
||||
new MockLogService(),
|
||||
new MockOptionsService({ scrollOnDisplayErase: true }),
|
||||
new MockOptionsService({ scrollOnEraseInDisplay: true }),
|
||||
new MockOscLinkService(),
|
||||
new MockCoreMouseService(),
|
||||
new MockUnicodeService()
|
||||
|
||||
@@ -1220,7 +1220,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
||||
this._dirtyRowTracker.markDirty(0);
|
||||
break;
|
||||
case 2:
|
||||
if (this._optionsService.rawOptions.scrollOnDisplayErase) {
|
||||
if (this._optionsService.rawOptions.scrollOnEraseInDisplay) {
|
||||
j = this._bufferService.rows;
|
||||
this._dirtyRowTracker.markRangeDirty(0, j - 1);
|
||||
while (j--) {
|
||||
|
||||
@@ -32,7 +32,7 @@ export const DEFAULT_OPTIONS: Readonly<Required<ITerminalOptions>> = {
|
||||
logLevel: 'info',
|
||||
logger: null,
|
||||
scrollback: 1000,
|
||||
scrollOnDisplayErase: false,
|
||||
scrollOnEraseInDisplay: false,
|
||||
scrollOnUserInput: true,
|
||||
scrollSensitivity: 1,
|
||||
screenReaderMode: false,
|
||||
|
||||
@@ -254,7 +254,7 @@ export interface ITerminalOptions {
|
||||
windowOptions?: IWindowOptions;
|
||||
wordSeparator?: string;
|
||||
overviewRuler?: IOverviewRulerOptions;
|
||||
scrollOnDisplayErase?: boolean;
|
||||
scrollOnEraseInDisplay?: boolean;
|
||||
|
||||
[key: string]: any;
|
||||
cancelEvents: boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -191,7 +191,7 @@ declare module '@xterm/headless' {
|
||||
* erased text to scrollback, instead of clearing only the viewport portion.
|
||||
* This emulates PuTTY's default clear screen behavior.
|
||||
*/
|
||||
scrollOnDisplayErase?: boolean;
|
||||
scrollOnEraseInDisplay?: boolean;
|
||||
|
||||
/**
|
||||
* The scrolling speed multiplier used for adjusting normal scrolling speed.
|
||||
|
||||
Vendored
+1
-1
@@ -262,7 +262,7 @@ declare module '@xterm/xterm' {
|
||||
* erased text to scrollback, instead of clearing only the viewport portion.
|
||||
* This emulates PuTTY's default clear screen behavior.
|
||||
*/
|
||||
scrollOnDisplayErase?: boolean;
|
||||
scrollOnEraseInDisplay?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to scroll to the bottom whenever there is some user input. The
|
||||
|
||||
Reference in New Issue
Block a user