File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ defaultStdio.onsetbackgroundcolor = (bg) => {
4949} ;
5050
5151defaultStdio . onmoveto = ( x , y ) => tty . moveTo ( x , y ) ;
52+ defaultStdio . onmoveoffset = ( offset ) => tty . moveOffset ( offset ) ;
5253
5354defaultStdio . onread = ( cb ) => tty . read ( cb ) ;
5455
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class StdioInterface {
2323 this . onsetcolor = ( ) => { } ;
2424 this . onsetbackgroundcolor = ( ) => { } ;
2525 this . onmoveto = ( ) => { } ;
26+ this . onmoveoffset = ( ) => { } ;
2627
2728 this . write = this . write . bind ( this ) ;
2829 this . writeError = this . writeError . bind ( this ) ;
@@ -62,6 +63,9 @@ class StdioInterface {
6263 moveTo ( x , y ) {
6364 this . onmoveto ( x , y ) ;
6465 }
66+ moveOffset ( offset ) {
67+ this . onmoveoffset ( offset ) ;
68+ }
6569
6670 clear ( ) {
6771 this . onclear ( ) ;
You can’t perform that action at this time.
0 commit comments