From ba7fce1ff40b5aee5a5e645ac44cbaeaae87170f Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 13 Jan 2006 19:19:13 +0000 Subject: [PATCH] Add something to display sysmain. --- exec/lbshell.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/exec/lbshell.js b/exec/lbshell.js index 8dd3f232d4..3cf1036598 100644 --- a/exec/lbshell.js +++ b/exec/lbshell.js @@ -30,7 +30,7 @@ var mainbar=new Lightbar; mainbar.direction=1; mainbar.xpos=2; mainbar.ypos=1; -mainbar.hotkeys=KEY_DOWN; +mainbar.hotkeys=KEY_DOWN|";"; mainbar.add("|File","F"); var filemenu=new Lightbar; filemenu.xpos=1; @@ -217,7 +217,7 @@ mainbar.add("|Info","I"); 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,"",""); mainbar.add("|Goodbye","G"); -mainbar.add("|; Command",";"); +mainbar.add("String Command",";"); draw_main(true); var next_key=''; @@ -232,14 +232,19 @@ while(1) { key=mainbar.items[mainbar.current].retval; switch(key) { case ';': + mainbar.current=8; + mainbar.draw(); console.gotoxy(1,2); console.attributes=9; - console.write("Command: "); + console.write("Command (? For Help): "); console.attributes=7; if(!console.aborted) { var str=console.getstr("",40,K_EDIT); clear_screen(); - str_cmds(str); + if(str=='?') + bbs.menu("sysmain"); + else + str_cmds(str); console.pause(); draw_main(true); } -- GitLab