shithub: drawfs

ref: 1e84383ea66d572e979e1add131a2e5ed3cc757a
dir: /words/

View raw version
FUNCTIONALITY

always (in drawfs):
- draw to internal image data (like memdraw)

offline:
- NOP
- ignore cons+mouse

connect (drawmgr):
- open /dev/draw/new to create new connection
- initial draw internal display to /dev/draw/n
- open /dev/cons+mouse stuff

online (drawmgr):
- after each internal draw/flush, draw internal display to /dev/draw/n
- forward cons+mouse

disconnect (drawmgr):
- close /dev/draw/n stuff
- close /dev/cons+mouse stuff

FILESYSTEM

- default /dev/draw layout (basically copy devdraw.c code)
- (additional cons+mouse stuff)
- post fs to /srv/drawfs.NAME

THREADS

- filesystem thread (/srv/drawfs.NAME+mount)
- display image (/srv/drawfs.NAME.display)
- console access (/srv/drawfs.NAME.cmd)
  - note when display changes (refresh)
  - resize events
  - how to syncronize pipe? when to read/write? poll?

RESIZE

mgr -----> fs.cmd
r x[4] y[4]   (resize x, y)