wu icon indicating copy to clipboard operation
wu copied to clipboard

doesn't work on window

Open honwhy opened this issue 9 years ago • 3 comments

λ go get github.com/shanzi/wu
# github.com/shanzi/wu/command
gocode\src\github.com\shanzi\wu\command\command.go:67: unknown syscall.SysProcAttr field 'Setpgid' in struct literal
gocode\src\github.com\shanzi\wu\command\command.go:133: undefined: syscall.Getpgid
gocode\src\github.com\shanzi\wu\command\command.go:135: undefined: syscall.Kill

env:

λ go version
go version go1.7rc6 windows/amd64

honwhy avatar Aug 24 '16 07:08 honwhy

Yeah, currently we do not support Windows as there is no wrapped method to kill a process under golang and thus we have to work with native Windows API.

shanzi avatar Aug 24 '16 07:08 shanzi

a wrapped method example, http://blog.csdn.net/fyxichen/article/details/51857864

honwhy avatar Aug 24 '16 07:08 honwhy

@Honwhy Cool! I will try to put that in when I'm free. Or could you give me a PR for it if possible? :p

shanzi avatar Aug 26 '16 06:08 shanzi