Implementing SIGWINCH handling.
Implementing SIGWINCH handling.

Now prettyping.sh responds to terminal being resized. Sometimes the output will
be glitched while resizing, but then it will be fine again.

Probably things will be easier if the cursor is always at the last line.
However, I believe leaving the cursor at the packet area looks better.

Also fixed a division by zero that I missed from a previous commit.

denilsonsa/prettyping