in reply to handling terminal window resizing

G'day jason0,

You provide very little in the way of details, which means that only a very generalised solution can be provided.

Here's some suggestions based on the assumption that you have code something like:

open my $cmd_pipe, '-|', 'iostat -w1';

And that you're reading from $cmd_pipe line-by-line which, in turn, forms the basis for what you output to the screen (and without any knowledge of what the header line(s) look like).

— Ken