| 37 |
open(TESTTY, "/dev/tty") || die gettext("This frontend requires a controlling tty.")."\n"; |
open(TESTTY, "/dev/tty") || die gettext("This frontend requires a controlling tty.")."\n"; |
| 38 |
|
|
| 39 |
$this->resize; # Get current screen size. |
$this->resize; # Get current screen size. |
| 40 |
$SIG{'WINCH'}=sub { $this->resize }; |
$SIG{'WINCH'}=sub { |
| 41 |
|
# There is a short period during global destruction where |
| 42 |
|
# $this may have been destroyed but the handler still |
| 43 |
|
# operative. |
| 44 |
|
if (defined $this) { |
| 45 |
|
$this->resize; |
| 46 |
|
} |
| 47 |
|
}; |
| 48 |
} |
} |
| 49 |
|
|
| 50 |
=item resize |
=bitem resize |
| 51 |
|
|
| 52 |
This method is called whenever the tty is resized, and probes to determine the |
This method is called whenever the tty is resized, and probes to determine the |
| 53 |
new screen size. |
new screen size. |