wow use api for tty size