llimllib / git-ls

The Unlicense
4 stars 0 forks source link

support windows #14

Open llimllib opened 7 months ago

llimllib commented 7 months ago

Currently, we use unix-only stuff to get the terminal width. How do you replicate that on windows?

./main.go:143:36: undefined: syscall.SYS_IOCTL
./main.go:144:23: undefined: syscall.TIOCGWINSZ
./main.go:144:36: not enough arguments in call to syscall.Syscall
    have (unknown type, uintptr, unknown type, uintptr)
    want (uintptr, uintptr, uintptr, uintptr, uintptr)

does anybody want to use this on windows?

llimllib commented 7 months ago

I think getting the window size might look something like this.

I'll need to break my code into files separated by build flags.