Update termtest/src/termtest.c to make screen resize work