Invisible entry
Posted in 1992
> I couldn't think of a better way to phase this. I have a form that
> is basically an opening screen that asks for Employee Id and password.
>
> In 4gl 4.0 how do I make it so the user DOESN'T see what they type as the enter
> their password. I like to be able to do it in the form.
>
> I try setting color attribute = invisible. I think I am may be confused as
> to what that attribute does. What does invisible mean? It is available
> attribute for display and prompt.
>
> Thanks,
> Ceci
in the form:
f001=passwd, invisible;
OR in 4gl:
INPUT passwd FROM screen.passwd ATTRIBUTE(INVISIBLE) or (BLACK)
But all of this is pointless if the terminal in question does not have
a supporting termcap entry that defines invisible. This would be the entry
for 'mk' in termcap or 'invis' in terminfo. If you're code still doesn't
work, check those. You can check terminfo from the command line by doing:
a=`tput invis`
echo $a"this is a test"
you should get a blank line. (to see if that works do the same thing)
(with smso (a=`tput smso`) this should give)
(a highlighted (maybe reversed) string, all)
(depends on your terminfo)
To check what you are currently using as a terminfo $TERM do:
untic (prints definition for your current $TERM)
To use terminfo instead of termcap (warning terminfo doesn't do color),
set INFORMIXTERM=terminfo. (default is termcap).
Write bAck with questIons, i'm sure I've conFused me.
lotsa luck,
j.
_____________________________________________________________________________
Jack Parker - Contractor |
Hewlett Packard, BSMC Boise, Idaho, USA| I've forgotten more than
jparker@hpbs2651.boi.hp.com | I ever knew
(208) 323-5388 (W) (208) 384-1623 (H) |
_____________________________________________________________________________