Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 377 Bytes
conductor "object"/main event loop/whatever:
- owns console
- owns buffers
- knows what the current backend is
- can switch between buffers
buffers:
- contain text
windows:
- contain buffers
- has current location of caret
backends:
- given input, decide what to do to current buffer
- identity backend: char x -> x
- normal backend: hjkl -> directions, dd -> delete line