Add tty resize method