xsr icon indicating copy to clipboard operation
xsr copied to clipboard

Store all the captured data in a structured data format

Open lezsakdomi opened this issue 7 years ago • 3 comments

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

lezsakdomi avatar Nov 29 '17 20:11 lezsakdomi

Do you want to store images in memory too? I don't think that that would work...

nonnymoose avatar Nov 30 '17 01:11 nonnymoose

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)

lezsakdomi avatar Nov 30 '17 06:11 lezsakdomi

Best to start writing buffer to disk when memory gets full or some threshold reached

lezsakdomi avatar Apr 21 '18 22:04 lezsakdomi