fixed a bug where `pwnlib.term.term` would simetimes throw an exception if there was free space at the bottom of the terminal and the window was resized.