We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 170e7b0 commit 1827b46Copy full SHA for 1827b46
1 file changed
utils/misc/nodejs-terminal/html/webcontainer-terminal/webcontainer-terminal.html
@@ -107,6 +107,8 @@
107
108
}//xy
109
110
+ term.prompt = prompt;
111
+
112
term.end_of_text = function(y){
113
// xterm.js uses 0-based indexing for the buffer,
114
// but 1-based for ANSI
@@ -348,6 +350,16 @@
348
350
}//focus
349
351
352
353
+ obj.prompt = promtpt;
354
355
+ async function prompt(){
356
+ console.log('prompt');
357
+ //await input.write('\u0003'); // Sends Ctrl+C to clear any junk
358
+ await input.write('\n'); // Sends Enter to get a clean prompt
359
360
+ }//prompt
361
362
363
//:
364
365
0 commit comments