Skip to content
Snippets Groups Projects
Commit ba7fce1f authored by deuce's avatar deuce
Browse files

Add something to display sysmain.

parent 54fc3285
Branches
Tags
No related merge requests found
...@@ -30,7 +30,7 @@ var mainbar=new Lightbar; ...@@ -30,7 +30,7 @@ var mainbar=new Lightbar;
mainbar.direction=1; mainbar.direction=1;
mainbar.xpos=2; mainbar.xpos=2;
mainbar.ypos=1; mainbar.ypos=1;
mainbar.hotkeys=KEY_DOWN; mainbar.hotkeys=KEY_DOWN|";";
mainbar.add("|File","F"); mainbar.add("|File","F");
var filemenu=new Lightbar; var filemenu=new Lightbar;
filemenu.xpos=1; filemenu.xpos=1;
...@@ -217,7 +217,7 @@ mainbar.add("|Info","I"); ...@@ -217,7 +217,7 @@ mainbar.add("|Info","I");
infomenu.add("|Text Files","T",25); infomenu.add("|Text Files","T",25);
infomenu.add("\xc0\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xd9",undefined,undefined,"",""); infomenu.add("\xc0\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xd9",undefined,undefined,"","");
mainbar.add("|Goodbye","G"); mainbar.add("|Goodbye","G");
mainbar.add("|; Command",";"); mainbar.add("String Command",";");
draw_main(true); draw_main(true);
var next_key=''; var next_key='';
...@@ -232,14 +232,19 @@ while(1) { ...@@ -232,14 +232,19 @@ while(1) {
key=mainbar.items[mainbar.current].retval; key=mainbar.items[mainbar.current].retval;
switch(key) { switch(key) {
case ';': case ';':
mainbar.current=8;
mainbar.draw();
console.gotoxy(1,2); console.gotoxy(1,2);
console.attributes=9; console.attributes=9;
console.write("Command: "); console.write("Command (? For Help): ");
console.attributes=7; console.attributes=7;
if(!console.aborted) { if(!console.aborted) {
var str=console.getstr("",40,K_EDIT); var str=console.getstr("",40,K_EDIT);
clear_screen(); clear_screen();
str_cmds(str); if(str=='?')
bbs.menu("sysmain");
else
str_cmds(str);
console.pause(); console.pause();
draw_main(true); draw_main(true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment