xsr
xsr copied to clipboard
Store all the captured data in a structured data format
For ex. in memory, using arrays. Or in JSON. Or in YAML. etc...
... rather than writing it immedieately to STDOUT
Advantages:
- Could be exported/imported easily for separate editing (see #18 )
- Allows splitting the program into more smaller modules (see #62 )
- Makes it possible to capture all output of (even different than
xinput
) programs (see #75 ) - Makes the program more portable (no issues yet, but see the distribution milestone)
- Implies more robust error handling (not required yet, but bugs are always there)
- And possibly many more
Do you want to store images in memory too? I don't think that that would work...
Maybe. I wouldn't state. Maybe it's a good point, to have an option for it? (The size of images can grow unexceptedly fast)
Best to start writing buffer to disk when memory gets full or some threshold reached