T
Tonino Greco
Hi,
I am needing todo a screen in unix console that looks something like :
#!/usr/bin/perl
use Term::ANSIColor;
use POSIX qw(strftime);
sub now { strftime "%Y/%m/%d %T ", localtime; }
print color("clear");
print color("white on_black"), " ";
print color("white on_blue"), " Menu";
print color("white on_black"), " ";
print color("white on_blue"), &now , "\n", color("reset");
print color("white on_blue"), " ", "Menu
Selection"," \n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), " ", color("blue on_white"),
"Username: ", color("white on_black"), " ", color("white on_whit
e"), " \n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("yellow on_blue"), "Please enter your Password ...
\n", color("reset");
print color("yellow on_blue"), "Data directory is :
\n", color("reset");
and I want to be able to keep the cursor at the Username section
forinput from the user ... but still draw the complete page.
Can anyone shed a light on how I can do this ...
IN essence I want to be able to (in a unix console) present a colored
login screen then accept the username - present a password screen - the
same as the username one - and then do some validation and present a
menu to the user ...
Thanks
Tonino
I am needing todo a screen in unix console that looks something like :
#!/usr/bin/perl
use Term::ANSIColor;
use POSIX qw(strftime);
sub now { strftime "%Y/%m/%d %T ", localtime; }
print color("clear");
print color("white on_black"), " ";
print color("white on_blue"), " Menu";
print color("white on_black"), " ";
print color("white on_blue"), &now , "\n", color("reset");
print color("white on_blue"), " ", "Menu
Selection"," \n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), " ", color("blue on_white"),
"Username: ", color("white on_black"), " ", color("white on_whit
e"), " \n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("white on_white"), "
\n", color("reset");
print color("yellow on_blue"), "Please enter your Password ...
\n", color("reset");
print color("yellow on_blue"), "Data directory is :
\n", color("reset");
and I want to be able to keep the cursor at the Username section
forinput from the user ... but still draw the complete page.
Can anyone shed a light on how I can do this ...
IN essence I want to be able to (in a unix console) present a colored
login screen then accept the username - present a password screen - the
same as the username one - and then do some validation and present a
menu to the user ...
Thanks
Tonino