Use direct syscall for terminal width.