impl of screen ghosting

This commit is contained in:
minjaesong
2020-05-16 09:06:17 +09:00
parent 772354d2d1
commit 57c16bcb44
8 changed files with 217 additions and 113 deletions

30
assets/tvdos/command.js Normal file
View File

@@ -0,0 +1,30 @@
var DOS_VERSION = "1.0";
var PROMPT_TEXT = ">";
var CURRENT_DRIVE = "A";
var shell_pwd = [""];
var welcome_text = "TSVM Disk Operating System, version " + DOS_VERSION;
function get_prompt_text() {
return CURRENT_DRIVE + ":\\\\" + shell_pwd.join("\\\\") + PROMPT_TEXT;
}
function greet() {
println(welcome_text);
println();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
println("Starting TVDOS...");
greet();
while (true) {
print(get_prompt_text());
var s = read();
println();
println("String read: " + s + "@");
}