(to be overrideen by subclasses when needed)
# ex:ts=8 sw=4:
-# $OpenBSD: State.pm,v 1.65 2021/01/08 14:21:37 espie Exp $
+# $OpenBSD: State.pm,v 1.66 2021/01/30 10:37:22 espie Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
return $self->{repo};
}
+sub handle_continue
+{
+ my $self = shift;
+ $self->find_window_size(1);
+}
+
sub sync_display
{
}
};
}
$SIG{'CONT'} = sub {
- $self->find_window_size(1);
+ $self->handle_continue;
}
}
-$OpenBSD: State.pod,v 1.1 2020/12/20 15:30:58 daniel Exp $
+$OpenBSD: State.pod,v 1.2 2021/01/30 10:37:22 espie Exp $
=head1 NAME
basic formatting function used by C<print> and friends, return the formatted
string.
+=item $state->handle_continue;
+
+callback for C<SIGCONT>, to be overridden by subclasses if some specific
+treatment (such as terminal redraw/reset) is needed.
+
=back
=head1 BUGS