mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
impl of screen ghosting
This commit is contained in:
30
assets/tvdos/command.js
Normal file
30
assets/tvdos/command.js
Normal 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 + "@");
|
||||
}
|
||||
Reference in New Issue
Block a user