diff --git a/src/Terminal.ts b/src/Terminal.ts index 85cfbe67..7d0def9b 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -43,7 +43,7 @@ import { IKeyboardEvent, KeyboardResultType, IBufferLine, IAttributeData, CoreMo import { evaluateKeyboardEvent } from 'common/input/Keyboard'; import { EventEmitter, IEvent } from 'common/EventEmitter'; import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine'; -import { handleWindowsModeLineFeed } from 'common/WindowsMode'; +import { updateWindowsModeWrappedState } from 'common/WindowsMode'; import { ColorManager } from 'browser/ColorManager'; import { RenderService } from 'browser/services/RenderService'; import { IOptionsService, IBufferService, ICoreMouseService, ICoreService, ILogService, IDirtyRowService, IInstantiationService, ICharsetService } from 'common/services/Services'; @@ -265,9 +265,9 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp private _enableWindowsMode(): void { if (!this._windowsMode) { const disposables: IDisposable[] = []; - disposables.push(this.onLineFeed(handleWindowsModeLineFeed.bind(null, this._bufferService))); + disposables.push(this.onLineFeed(updateWindowsModeWrappedState.bind(null, this._bufferService))); disposables.push(this.addCsiHandler({ final: 'H' }, () => { - handleWindowsModeLineFeed(this._bufferService); + updateWindowsModeWrappedState(this._bufferService); return false; })); this._windowsMode = { diff --git a/src/common/WindowsMode.ts b/src/common/WindowsMode.ts index ff0e7591..7cff094b 100644 --- a/src/common/WindowsMode.ts +++ b/src/common/WindowsMode.ts @@ -6,7 +6,7 @@ import { CHAR_DATA_CODE_INDEX, NULL_CELL_CODE, WHITESPACE_CELL_CODE } from 'common/buffer/Constants'; import { IBufferService } from 'common/services/Services'; -export function handleWindowsModeLineFeed(bufferService: IBufferService): void { +export function updateWindowsModeWrappedState(bufferService: IBufferService): void { // Winpty does not support wraparound mode which means that lines will never // be marked as wrapped. This causes issues for things like copying a line // retaining the wrapped new line characters or if consumers are listening