These files are just wrappers around consolesize-go package. For unix, they resort to terminal size calculation from stdin if stdout is not directed to terminal. For windows, they currently throw an error.
By default, this functions calculates terminal dimensions from stdout but in case
stdout isn't a the terminal, it'll calculate terminal dimensions from stdin. This
functionality isn't supported for windows yet