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
In reply to Expect script doubt by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |