* [9front] Display graphics by writing to /dev/<device>
@ 2021-07-01 19:38 Alexander Shendi
2021-07-02 1:04 ` Nick Owens
2021-07-02 1:11 ` ori
0 siblings, 2 replies; 5+ messages in thread
From: Alexander Shendi @ 2021-07-01 19:38 UTC (permalink / raw)
To: 9front
Dear list,
I'm determined to program under 9front. I would like to ask, if I could display (bitmap) graphics in a window by writing stuff to some /dev/<devicename>. I think this is definitely possible, but am unsure which device to use snd where the process is documented.
I'm sorry if this is a Frequently Asked Stupid Question (FASQ).
Thanks in advance,
Alexander Shendi
--
Ceci n'est pas un courriel.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9front] Display graphics by writing to /dev/<device>
2021-07-01 19:38 [9front] Display graphics by writing to /dev/<device> Alexander Shendi
@ 2021-07-02 1:04 ` Nick Owens
2021-07-02 1:11 ` ori
1 sibling, 0 replies; 5+ messages in thread
From: Nick Owens @ 2021-07-02 1:04 UTC (permalink / raw)
To: 9front
that is exactly how devdraw works. you write messages to a file in
/dev, and stuff happens on the screen (http://man.9front.org/3/draw).
see http://man.9front.org/2/draw for a higher level interface.
On Thu, Jul 1, 2021 at 12:43 PM Alexander Shendi
<Alexander.Shendi@web.de> wrote:
>
> Dear list,
>
> I'm determined to program under 9front. I would like to ask, if I could display (bitmap) graphics in a window by writing stuff to some /dev/<devicename>. I think this is definitely possible, but am unsure which device to use snd where the process is documented.
>
> I'm sorry if this is a Frequently Asked Stupid Question (FASQ).
>
> Thanks in advance,
>
> Alexander Shendi
> --
> Ceci n'est pas un courriel.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9front] Display graphics by writing to /dev/<device>
2021-07-01 19:38 [9front] Display graphics by writing to /dev/<device> Alexander Shendi
2021-07-02 1:04 ` Nick Owens
@ 2021-07-02 1:11 ` ori
2021-07-02 15:43 ` Alexander Shendi
2021-07-03 8:45 ` Philip Silva
1 sibling, 2 replies; 5+ messages in thread
From: ori @ 2021-07-02 1:11 UTC (permalink / raw)
To: 9front
Quoth Alexander Shendi <Alexander.Shendi@web.de>:
> Dear list,
>
> I'm determined to program under 9front. I would like to ask, if I could display (bitmap) graphics in a window by writing stuff to some /dev/<devicename>. I think this is definitely possible, but am unsure which device to use snd where the process is documented.
>
> I'm sorry if this is a Frequently Asked Stupid Question (FASQ).
>
> Thanks in advance,
>
> Alexander Shendi
> --
> Ceci n'est pas un courriel.
>
man 2 draw ==> C API
man 3 draw ==> device api
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9front] Display graphics by writing to /dev/<device>
2021-07-02 1:11 ` ori
@ 2021-07-02 15:43 ` Alexander Shendi
2021-07-03 8:45 ` Philip Silva
1 sibling, 0 replies; 5+ messages in thread
From: Alexander Shendi @ 2021-07-02 15:43 UTC (permalink / raw)
To: 9front; +Cc: ori, Nick Owens
Thank you very much. That was the info I needed. I've read draw(3), image(6) and color(6) :) The interface seems to be rather nice and tractable.
Am 2. Juli 2021 03:11:03 MESZ schrieb ori@eigenstate.org:
>Quoth Alexander Shendi <Alexander.Shendi@web.de>:
>> Dear list,
>>
>> I'm determined to program under 9front. I would like to ask, if I
>could display (bitmap) graphics in a window by writing stuff to some
>/dev/<devicename>. I think this is definitely possible, but am unsure
>which device to use snd where the process is documented.
>>
>> I'm sorry if this is a Frequently Asked Stupid Question (FASQ).
>>
>> Thanks in advance,
>>
>> Alexander Shendi
>> --
>> Ceci n'est pas un courriel.
>>
>
>man 2 draw ==> C API
>man 3 draw ==> device api
--
Ceci n'est pas un courriel.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9front] Display graphics by writing to /dev/<device>
2021-07-02 1:11 ` ori
2021-07-02 15:43 ` Alexander Shendi
@ 2021-07-03 8:45 ` Philip Silva
1 sibling, 0 replies; 5+ messages in thread
From: Philip Silva @ 2021-07-03 8:45 UTC (permalink / raw)
To: 9front
Actually there are also more or less experimental Widget libraries that build upon devdraw/libdraw: http://shithub.us/tevo/widget/HEAD/info.html (didn't try that yet but there is an example program in the repository) and https://github.com/knusbaum/duit (written in Go)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-03 13:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 19:38 [9front] Display graphics by writing to /dev/<device> Alexander Shendi
2021-07-02 1:04 ` Nick Owens
2021-07-02 1:11 ` ori
2021-07-02 15:43 ` Alexander Shendi
2021-07-03 8:45 ` Philip Silva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).