File tree Expand file tree Collapse file tree
utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252
5353 </ div >
5454
55- < web-console component >
56- </ web-console >
55+ < web-terminal component >
56+ </ web-terminal >
5757
5858 </ div >
5959
8888
8989 var viewport ;
9090 var editor ;
91- var cons ;
91+ var term ;
9292
9393 var tmpfile = '/tmp.js' ;
9494 var tmpfile2 = '~/user/tmp.js' ;
105105 await mod . auto ( ) ;
106106
107107 editor = mod [ 'web-editor' ] ;
108- cons = mod [ 'web-console ' ] ;
109- cons . log ( 'ready' ) ;
108+ term = mod [ 'web-terminal ' ] ;
109+ term . log ( 'ready' ) ;
110110
111111 await initdom ( ) ;
112112
148148 var stream = new WritableStream ( { write ( data ) {
149149
150150 console . log ( data ) ;
151- cons . log ( data ) ;
151+ term . log ( data ) ;
152152
153153 } } ) ;
154154 process . output . pipeTo ( stream )
155155
156156 var code = await process . exit ;
157157
158158 console . log ( 'process exited :' , code ) ;
159- cons . log ( 'process exited :' , code ) ;
159+ term . log ( 'process exited :' , code ) ;
160160
161161 } //run
162162
163163
164164 btn . kill = async function ( ) {
165165
166166 if ( ! process ) {
167- cons . log ( 'no process' ) ;
167+ term . log ( 'no process' ) ;
168168 return ;
169169 }
170170
You can’t perform that action at this time.
0 commit comments