Resizing of pterm now works, and the size information is correctly