Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
Can I use the below code to vary the size of my spawned terminal if yes How. Thanks in advance.
This code is from the man page of Expect module.
How to propagate terminal sizes
my $exp = new Expect; $exp->slave->clone_winsize_from(\*STDIN); $exp->spawn("ssh somehost); $SIG{WINCH} = \&winch; sub winch { $exp->slave->clone_winsize_from(\*STDIN); kill WINCH => $exp->pid if $exp->pid; $SIG{WINCH} = \&winch; } $exp->interact();
20050625 Cleaned up by Corion: Added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expect script doubt
by anonymized user 468275 (Curate) on Jun 27, 2005 at 09:10 UTC | |
by Anonymous Monk on Jun 27, 2005 at 10:56 UTC | |
by anonymized user 468275 (Curate) on Jun 27, 2005 at 11:36 UTC | |
by Anonymous Monk on Jun 27, 2005 at 11:43 UTC | |
by anonymized user 468275 (Curate) on Jun 27, 2005 at 12:26 UTC | |
|