Removed the error when the tty size can not be obtained and just ignore it.