Skip to content

Commit 1344c01

Browse files
save file
1 parent 94b6fc5 commit 1344c01

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@
498498
term.writeln.green('done.');
499499
}
500500

501-
//await input.write('\u0003'); // Sends Ctrl+C to clear any junk
502-
await input.write('\n'); // Sends Enter to get a clean prompt
501+
await prompt();
503502

504503
}//https-server
505504

@@ -536,6 +535,7 @@
536535
complete.load(file,blob);
537536

538537
term.writeln.green('snapshot saved');
538+
await prompt();
539539

540540
}//take-snapsht
541541

@@ -575,6 +575,7 @@
575575
}
576576

577577
term.writeln.green('snapshot loaded');
578+
await prompt();
578579

579580
}//restore-snapshot
580581

@@ -948,6 +949,12 @@
948949

949950

950951

952+
async function prompt(){
953+
954+
//await input.write('\u0003'); // Sends Ctrl+C to clear any junk
955+
await input.write('\n'); // Sends Enter to get a clean prompt
956+
957+
}//prompt
951958

952959

953960
</script>

0 commit comments

Comments
 (0)