Flag lines as wrapped after CUP in windows mode

Fixes #2666
This commit is contained in:
Daniel Imms
2020-01-07 09:15:04 -08:00
parent 2a9e16bb8e
commit c50cd4cc3e
2 changed files with 53 additions and 1 deletions
+11 -1
View File
@@ -264,7 +264,17 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
private _enableWindowsMode(): void {
if (!this._windowsMode) {
this._windowsMode = this.onLineFeed(handleWindowsModeLineFeed.bind(null, this._bufferService));
const disposables: IDisposable[] = [];
disposables.push(this.onLineFeed(handleWindowsModeLineFeed.bind(null, this._bufferService)));
disposables.push(this.addCsiHandler({ final: 'H' }, () => {
handleWindowsModeLineFeed(this._bufferService);
return false;
}));
this._windowsMode = {
dispose: () => {
disposables.forEach(d => d.dispose());
}
};
}
}