9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.6k stars 318 forks source link

libcontrol #614

Open adriangrigore opened 1 year ago

adriangrigore commented 1 year ago

Any reason libcontrol is not ported?

noelhunt commented 1 year ago

Yes, I have wondered that myself. I have actually built libcontrol, but I would like to see examples of its use. I am certain I read somewhere that there was only ever one program written using it, but I've never found such a thing in any of the released Plan9 source.

adriangrigore commented 1 year ago

I compiled it successfully on OpenBSD and actually created a small program with it!

I would like to see examples of its use. I am certain I read somewhere that there was only ever one program written using it, but I've never found such a thing in any of the released Plan9 source.

https://9p.io/sources/plan9/sys/src/cmd/auth/factotum/fgui.c

noelhunt commented 1 year ago

Many thanks, I will try this out.

When I was experimenting with libcontrol a couple of years ago, all I could find was a program to display a 'slider'; I found this in the contrib source. There was one other program which drew a large window with a text entry line (rectangle) at the bottom. Very reminiscent of pads(9)/pi(9) and Rob Pike's editor 'jim'. I think commands typed in the text entry rectangle had their output displayed in the large window above.

Your code looks a lot more interesting.

On Fri, 21 Apr 2023 at 04:13, Adrian Emil Grigore @.***> wrote:

I compiled it successfully on OpenBSD an actually created a small program with it!

I would like to see examples of its use. I am certain I read somewhere that there was only ever one program written using it, but I've never found such a thing in any of the released Plan9 source.

https://9p.io/sources/plan9/sys/src/cmd/auth/factotum/fgui.c

— Reply to this email directly, view it on GitHub https://github.com/9fans/plan9port/issues/614#issuecomment-1516750160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXX5DA2KAFQWPPQOWEGQ3DXCF4DRANCNFSM6AAAAAAWWOKHWI . You are receiving this because you commented.Message ID: @.***>

halfwit commented 4 months ago

/sys/src/cmd/bitsy/keyboard.c uses libcontrol. I wrote a bit with it for my personal things, and really enjoyed working in it, but it does feel somewhat unfinished.