disp.htmltext="<P>Bill's
Emulator (c)bill@napier<BR>";
disp.background = true;
disp.multiline = true;
disp.border = false;
disp.type = "output";
pr.background =
true;
pr.multiline = false;
pr.border = false;
pr.text=">";
Selection.setFocus("_root.inp");
inp.type = "input";
inp.background = true;
inp.multiline =true;
inp.border = false;
prompt.text=">";
str=inp.text;
inp.text=" ";
//setFontMenu();
inp.onChanged = function() {
str=inp.text;
trace("String is " + str);
for (i=0;i<str.length;i++)
{
if (str.charcodeat(i)==13)
{
str=str.slice(0,i); trace(str);
disp.scroll++;
prompt.text=">";
inp.text="";
if (str=="help" || str=="?") { disp.htmltext=
disp.htmltext + "<P><B>HELP:</B>
This will display this screen<P>"; }
else { disp.htmltext=disp.htmltext + "<P>Can't
find command: " + str + "<BR>"; }
}
}
}
|