develooper Front page | perl.perl5.porters | Postings from September 2001

Re: [ID 20010929.014] Term::Complete screws up -ixon

Thread Previous | Thread Next
Jarkko Hietaniemi
September 30, 2001 16:12
Re: [ID 20010929.014] Term::Complete screws up -ixon
Message ID:
On Sun, Sep 30, 2001 at 03:04:31PM +0200, Rafael Garcia-Suarez wrote:
> On 2001.09.30 01:07 Nicholas Clark wrote:
> > 
> > I'm not enough of a terminal wizard to know why the routines:
> > 	    $tty_raw_noecho = "$stty raw -echo";
> > 	    $tty_restore    = "$stty -raw echo";
> > 
> > don't do what they should, or whether a stty -all can be used instead to
> > capture terminal output and restore it perfectly (so sorry, no patch), but
> > I'd hope that something can be done to fix this irritating bug.
> On Solaris and Linux, you can use `stty -g`. This outputs a string that can
> be given back as parameter to stty to restore the terminal state.
> But I don't know whether it's portable.

I guess one could try running stty -g, if succesful (no error code),
save away the output, and on completion restore using that.

$jhi++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About