Don't call stty to check terminal size

It is basically the same as calling ioctl.