Skip to content

Commit

Permalink
propagate window size to slave pty; allows emacs to run!
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Aug 10, 2009
1 parent fc551d5 commit e8c8ce4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/App/Persistent/Server/Connection.pm
Expand Up @@ -77,6 +77,9 @@ class App::Persistent::Server::Connection {
my $run = shift;
$self->_mk_printer($run->pty_handle, 'NormalOutput');

# TODO: clone the pclient's winsize, not the parent's
$run->pty_handle->fh->slave->clone_winsize_from(\*STDIN);

$run->completion_condvar->cb(
sub {
my ($cv) = @_;
Expand Down

0 comments on commit e8c8ce4

Please sign in to comment.