Skip to content

Commit d423427

Browse files
save file
1 parent f3010bc commit d423427

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0/snippet-nodejs-v1.0.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252

5353
</div>
5454

55-
<web-console component>
56-
</web-console>
55+
<web-terminal component>
56+
</web-terminal>
5757

5858
</div>
5959

@@ -88,7 +88,7 @@
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';
@@ -105,8 +105,8 @@
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

@@ -148,23 +148,23 @@
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

0 commit comments

Comments
 (0)