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

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

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
September 30, 2001 16:12
Subject:
Re: [ID 20010929.014] Term::Complete screws up -ixon
Message ID:
20011001021246.M24225@alpha.hut.fi
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++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About