Use correct fn for resizing TTY Upstream-commit: a0f80079b8e699b992f34cc76a97ba578421fdbb Component: engine