ref: 15fb95683835a788826d0826f28e88fcd68ea85d
dir: /words/
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
A
- default /dev/draw layout (basically copy devdraw.c code)
- post fs to /srv/drawfs.NAME
B
- ctl (message pipe)
- display (screen image)
- refresh (updated rectangle)
- post fs to /srv/drawfs.NAME.cmd
THREADS
- filesystem thread (/srv/drawfs.NAME+mount)
MESSAGE PIPE (ctl file)
- note when display changes (refresh)
- refresh rectangle
- resize events
- how to syncronize pipe?
RESIZE
ctl -------------> fs.cmd
r x[4] y[4] (resize x, y)
fs.cmd ----------> ctl
r refresh from refresh image (Rectangle)