/[debconf]/debconf-trunk/Debconf/FrontEnd/Tty.pm
ViewVC logotype

Diff of /debconf-trunk/Debconf/FrontEnd/Tty.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 825 by joey, Tue Nov 28 22:09:56 2000 UTC revision 826 by joey, Thu Sep 6 04:41:25 2001 UTC
# Line 37  sub init { Line 37  sub init {
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.

Legend:
Removed from v.825  
changed lines
  Added in v.826

  ViewVC Help
Powered by ViewVC 1.1.5