@@ -202,38 +202,38 @@ describe('InputHandler', () => {
202202 describe ( 'setCursorStyle' , ( ) => {
203203 it ( 'should call Terminal.setOption with correct params' , ( ) => {
204204 inputHandler . setCursorStyle ( Params . fromArray ( [ 0 ] ) ) ;
205- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'block' ) ;
206- assert . equal ( optionsService . options [ ' cursorBlink' ] , true ) ;
205+ assert . equal ( coreService . decPrivateModes . cursorStyle , undefined ) ;
206+ assert . equal ( coreService . decPrivateModes . cursorBlink , undefined ) ;
207207
208208 optionsService . options = clone ( DEFAULT_OPTIONS ) ;
209209 inputHandler . setCursorStyle ( Params . fromArray ( [ 1 ] ) ) ;
210- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'block' ) ;
211- assert . equal ( optionsService . options [ ' cursorBlink' ] , true ) ;
210+ assert . equal ( coreService . decPrivateModes . cursorStyle , 'block' ) ;
211+ assert . equal ( coreService . decPrivateModes . cursorBlink , true ) ;
212212
213213 optionsService . options = clone ( DEFAULT_OPTIONS ) ;
214214 inputHandler . setCursorStyle ( Params . fromArray ( [ 2 ] ) ) ;
215- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'block' ) ;
216- assert . equal ( optionsService . options [ ' cursorBlink' ] , false ) ;
215+ assert . equal ( coreService . decPrivateModes . cursorStyle , 'block' ) ;
216+ assert . equal ( coreService . decPrivateModes . cursorBlink , false ) ;
217217
218218 optionsService . options = clone ( DEFAULT_OPTIONS ) ;
219219 inputHandler . setCursorStyle ( Params . fromArray ( [ 3 ] ) ) ;
220- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'underline' ) ;
221- assert . equal ( optionsService . options [ ' cursorBlink' ] , true ) ;
220+ assert . equal ( coreService . decPrivateModes . cursorStyle , 'underline' ) ;
221+ assert . equal ( coreService . decPrivateModes . cursorBlink , true ) ;
222222
223223 optionsService . options = clone ( DEFAULT_OPTIONS ) ;
224224 inputHandler . setCursorStyle ( Params . fromArray ( [ 4 ] ) ) ;
225- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'underline' ) ;
226- assert . equal ( optionsService . options [ ' cursorBlink' ] , false ) ;
225+ assert . equal ( coreService . decPrivateModes . cursorStyle , 'underline' ) ;
226+ assert . equal ( coreService . decPrivateModes . cursorBlink , false ) ;
227227
228228 optionsService . options = clone ( DEFAULT_OPTIONS ) ;
229229 inputHandler . setCursorStyle ( Params . fromArray ( [ 5 ] ) ) ;
230- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'bar' ) ;
231- assert . equal ( optionsService . options [ ' cursorBlink' ] , true ) ;
230+ assert . equal ( coreService . decPrivateModes . cursorStyle , 'bar' ) ;
231+ assert . equal ( coreService . decPrivateModes . cursorBlink , true ) ;
232232
233233 optionsService . options = clone ( DEFAULT_OPTIONS ) ;
234234 inputHandler . setCursorStyle ( Params . fromArray ( [ 6 ] ) ) ;
235- assert . equal ( optionsService . options [ ' cursorStyle' ] , 'bar' ) ;
236- assert . equal ( optionsService . options [ ' cursorBlink' ] , false ) ;
235+ assert . equal ( coreService . decPrivateModes . cursorStyle , 'bar' ) ;
236+ assert . equal ( coreService . decPrivateModes . cursorBlink , false ) ;
237237 } ) ;
238238 } ) ;
239239 describe ( 'setMode' , ( ) => {
0 commit comments