@@ -2222,7 +2222,7 @@ describe('InputHandler', () => {
22222222 } ) ;
22232223 it ( 'ANSI 2 (keyboard action mode)' , async ( ) => {
22242224 await inputHandler . parseP ( '\x1b[2$p' ) ;
2225- assert . deepEqual ( reportStack . pop ( ) , '\x1b[2;3 $y' ) ; // always set
2225+ assert . deepEqual ( reportStack . pop ( ) , '\x1b[2;4 $y' ) ; // always reset
22262226 } ) ;
22272227 it ( 'ANSI 4 (insert mode)' , async ( ) => {
22282228 await inputHandler . parseP ( '\x1b[4$p' ) ;
@@ -2236,7 +2236,7 @@ describe('InputHandler', () => {
22362236 } ) ;
22372237 it ( 'ANSI 12 (send/receive)' , async ( ) => {
22382238 await inputHandler . parseP ( '\x1b[12$p' ) ;
2239- assert . deepEqual ( reportStack . pop ( ) , '\x1b[12;4 $y' ) ; // always reset
2239+ assert . deepEqual ( reportStack . pop ( ) , '\x1b[12;3 $y' ) ; // always set
22402240 } ) ;
22412241 it ( 'ANSI 20 (newline mode)' , async ( ) => {
22422242 await inputHandler . parseP ( '\x1b[20$p' ) ;
@@ -2280,7 +2280,7 @@ describe('InputHandler', () => {
22802280 } ) ;
22812281 it ( 'DEC privates perma modes' , async ( ) => {
22822282 // [mode number, state value]
2283- const perma = [ [ 3 , 0 ] , [ 8 , 3 ] , [ 1005 , 4 ] , [ 1015 , 4 ] , [ 1048 , 1 ] ] ;
2283+ const perma = [ [ 3 , 0 ] , [ 8 , 3 ] , [ 67 , 4 ] , [ 1005 , 4 ] , [ 1015 , 4 ] , [ 1048 , 1 ] ] ;
22842284 for ( const [ mode , value ] of perma ) {
22852285 await inputHandler . parseP ( `\x1b[?${ mode } $p` ) ;
22862286 assert . deepEqual ( reportStack . pop ( ) , `\x1b[?${ mode } ;${ value } $y` ) ;
0 commit comments