Introduce options service

This commit is contained in:
Daniel Imms
2019-06-01 09:29:11 -07:00
parent 343d4c3348
commit 3ba7069787
12 changed files with 361 additions and 252 deletions
+4 -4
View File
@@ -1841,19 +1841,19 @@ export class InputHandler extends Disposable implements IInputHandler {
switch (param) {
case 1:
case 2:
this._terminal.setOption('cursorStyle', 'block');
this._terminal.options.cursorStyle = 'block';
break;
case 3:
case 4:
this._terminal.setOption('cursorStyle', 'underline');
this._terminal.options.cursorStyle = 'underline';
break;
case 5:
case 6:
this._terminal.setOption('cursorStyle', 'bar');
this._terminal.options.cursorStyle = 'bar';
break;
}
const isBlinking = param % 2 === 1;
this._terminal.setOption('cursorBlink', isBlinking);
this._terminal.options.cursorBlink = isBlinking;
}
}