Subj : Login Prompt
To : DOVE-Net.Programming_(Javascript)
From : Mindless Automaton
Date : Tue Dec 29 2009 12:53 pm
For the login prompt, I wanted to display an ansi file in the background
and then overlay the prompt text (Enter User Name..) on top.
(Print ansi file, console.up & right to move cursor to print prompt)
I can do this but when I just hit enter at the prompt, only the prompt
text gets printed again, the ansi does not.
<code>
// Display login prompt
console.down(10);
console.printfile(system.text_dir+"login.ans",P_NONE);
console.up(7);
console.right(17);
console.print("\1n\1h\1cEnter \1wUser Name");
if(!(bbs.node_settings&NM_NO_NUM))
console.print("\1c or \1wNumber");
if(!(system.settings&SYS_CLOSED))
console.print("\1c or '\1yNew\1c'");
if(guest)
console.print("\1c or '\1yGuest\1c'");
console.down(1);
console.left(45);
console.print("NN:\b\b\bLogin: \1w");
</code>
Any ideas or any samples in the other js files on doing something like
this?