diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-04-14 00:13:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-04-14 00:13:22 -0500 |
commit | 4712c215100e2d3113b78ae6dcdd47a759327227 (patch) | |
tree | 8c4b2fe566ab5560aed234c56c448dbdad46509d | |
parent | 494b7e609819202a78f92cce023cc9c3f842d9b3 (diff) | |
download | app-termcast-4712c215100e2d3113b78ae6dcdd47a759327227.tar.gz app-termcast-4712c215100e2d3113b78ae6dcdd47a759327227.zip |
don't switch to raw mode until we know we can connect
-rw-r--r-- | lib/App/Termcast.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/App/Termcast.pm b/lib/App/Termcast.pm index 0d20b9f..cdaddf0 100644 --- a/lib/App/Termcast.pm +++ b/lib/App/Termcast.pm @@ -270,9 +270,9 @@ sub run { my $self = shift; my @cmd = @_; - $self->_raw_mode(1); $self->socket; + $self->_raw_mode(1); my $guard = Scope::Guard->new(sub { $self->_raw_mode(0) }); $self->pty->spawn(@cmd) || die "Couldn't spawn @cmd: $!"; |