Re: [9fans] a simple graphical application in Go?

2020-04-06 Thread Lucio De Re
On 4/5/20, Fazlul Shahriar wrote: > There is a PR open with Plan 9 devdraw support to 9fans.net/go/draw: > https://github.com/9fans/go/pull/28 > It at least works with the Go acme port Edwood last I tested. > There are fourteen open PRs and #28 needs #26 first. That would still leave 12 for 9front

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread Skip Tavakkolian
Cool! Thank you. On Sat, Apr 4, 2020, 9:17 PM Fazlul Shahriar wrote: > There is a PR open with Plan 9 devdraw support to 9fans.net/go/draw: > https://github.com/9fans/go/pull/28 > It at least works with the Go acme port Edwood last I tested. > > On Sat, Apr 4, 2020 at 4:33 PM Jeremy Jackins > w

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread Fazlul Shahriar
There is a PR open with Plan 9 devdraw support to 9fans.net/go/draw: https://github.com/9fans/go/pull/28 It at least works with the Go acme port Edwood last I tested. On Sat, Apr 4, 2020 at 4:33 PM Jeremy Jackins wrote: > Well, you need a Go draw package in place of the C library. There is a > d

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread Kim Lassila
On Apr 5, 2020, at 12:37 AM, Chris McGee wrote: > > You can try this Go library by mischief and some examples in the cmd package: > https://bitbucket.org/mischief/draw9/src/default/ > Thank you, thank you! Here is the Go version of black.c: pa

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread ori
> You can try this Go library by mischief and some examples in the cmd > package: > https://bitbucket.org/mischief/draw9/src/default/ > > Last I recall, it worked fine on 9front. I'm not sure about the other > variants. > It should work elsewhere -- There have been no incompatible changes to dev

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread Skip Tavakkolian
I think that's the right place to start. I've not looked closely, but it looks like the only thing that you'd need to do for a client library is to change drawfcall/mux.go:New to use the draw service posted on /srv. On Sat, Apr 4, 2020 at 1:34 PM Jeremy Jackins wrote: > Well, you need a Go draw

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread Chris McGee
You can try this Go library by mischief and some examples in the cmd package: https://bitbucket.org/mischief/draw9/src/default/ Last I recall, it worked fine on 9front. I'm not sure about the other variants. Cheers, Chris On Sat, Apr 4, 2020 at 9:54 AM Kim Lassila wrote: > Has anyone written a

Re: [9fans] a simple graphical application in Go?

2020-04-04 Thread Jeremy Jackins
Well, you need a Go draw package in place of the C library. There is a draw package in github.com/9fans/go/ but unfortunately I think it only supports plan9port devdraw, rather than the native Plan 9 draw device. So there is some library work to be done first. Since the Go standard library also con

[9fans] a simple graphical application in Go?

2020-04-04 Thread Kim Lassila
Has anyone written a graphical application in Go on Plan 9? How would the Go equivalent of black.c (thank you fgb) look like? - - - clip - - - #include #include #include void main(int, char *argv[]) { Rectangle rect; Image *black; fmtinstall('R', Rfmt);