From c1183b8fc1e8ca0bde1a100c7f3f9bd0c243633d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 7 Jul 2009 00:28:18 -0500 Subject: use the interface from the new version of io-pty-easy --- lib/App/Termcast.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/App/Termcast.pm b/lib/App/Termcast.pm index 62e5bc3..87980ef 100644 --- a/lib/App/Termcast.pm +++ b/lib/App/Termcast.pm @@ -50,14 +50,9 @@ sub run { PeerPort => $self->port); $socket->write('hello '.$self->user.' '.$self->password."\n"); - my $pty = IO::Pty::Easy->new; + my $pty = IO::Pty::Easy->new(raw => 0); $pty->spawn(@argv); my $ptyfd = fileno($pty); - my $termios = POSIX::Termios->new; - $termios->getattr($ptyfd); - my $lflag = $termios->getlflag; - $termios->setlflag($lflag | POSIX::ECHO); - $termios->setattr($ptyfd, POSIX::TCSANOW); my ($rin, $rout) = ''; vec($rin, fileno(STDIN) ,1) = 1; -- cgit v1.2.3-54-g00ecf