mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-13 08:04:03 +09:00
shell for the portable wip
This commit is contained in:
21
assets/disk0/tvdos/tuidev/kyo_home.js
Normal file
21
assets/disk0/tvdos/tuidev/kyo_home.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// Loose reconstruction of the home screen of the Kyotronic 85/TRS-80 Model 100/etc.
|
||||
|
||||
let menu = [
|
||||
{label:"BASIC",pwd:"\\",exec:"basic",args:""},
|
||||
{label:"DOS",pwd:"\\",exec:"command",args:""},
|
||||
{label:"TEXT",pwd:"\\home",exec:"undefined",args:""},
|
||||
{label:"TELCOM",pwd:"\\home",exec:"undefined",args:""}
|
||||
];
|
||||
|
||||
const MENU_COLS = 4;
|
||||
|
||||
function redraw() {
|
||||
con.clear();
|
||||
for (let i = 0; i < MENU_COLS*6; i++) {
|
||||
let m = menu[i];
|
||||
con.move(2+((i/MENU_COLS)|0),2+((i%MENU_COLS)*10));
|
||||
print(m ? m.label : "-.-");
|
||||
}
|
||||
}
|
||||
|
||||
redraw();
|
||||
Reference in New Issue
Block a user