[vox-tech] preventing display of typed text?
Ryan
vox-tech@lists.lugod.org
Fri, 21 Jun 2002 12:35:50 -0700
On Friday 21 June 2002 07:03 am, Peter Jay Salzman wrote:
> begin Ryan <ryan@mother.com>
>
> > On Thursday 20 June 2002 11:36 pm, Peter Jay Salzman wrote:
> > > without checking, i've used 2 perl modules that might help:
> > >
> > > term which implements the advanced features that termcap provides l=
ike
> > > underlining and boldfacing text
> > >
> > > ncurses which basically implements the C style ncurses library.
> > >
> > > i would imagine both modules allow you to do this. in fact, i _kno=
w_
> > > that C/ncurses has a function to block echo in raw mode. i'm guess=
ing
> > > that perl/ncurses can do this too.
> >
> > I prefer a solution that is platform independant
>
> ryan, this is perl code. what makes you think these modules aren't
> platform independent?
>
> don't you think DOS has it's own terminal handling capabilities?
I didn't think DOS had curses, and for some reason Term doesn't seem to w=
ant=20
to work. (I tried the bit of code from `perldoc -q password`, but perl=20
complains about the module not being in @INC, even though it is as far as=
I=20
can tell.)
Can't locate loadable object for module Term::ReadKey in @INC (@INC conta=
ins:=20
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1=20
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1=20
/usr/lib/perl5/site_perl .) at ./passtest.pl line 3
even though I installed it with CPAN, and it seems to be in the right pla=
ce;
$ locate ReadKey.pm
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Term/ReadKey.pm
Term::ReadKey sounds to be what I'm looking for, for perl, but it's not=20
working :(
> ps- for bash, look at tput.
Mark's sugguestion of stty helped (it works fine), however, I couldn't fi=
nd=20
the needed option for tput in the manpage.
A bit of searching also turned up the escape sequeace '^]]&dS' which work=
s,=20
and seems to turn back off after '^]&' but I have no idea where this will=
and=20
will not work. :/