Terminal size on FreeBSD and Windows

The function for terminal size didn't seem to work for me on FreeBSD and Windows.

I hardcoded for Windows as I'm not sure how to do it.

The magic number is in the syscall package on FreeBSD, maybe it is as well on Linux, I haven't checked.