kernc / logkeys

:memo: :keyboard: A GNU/Linux keylogger that works!
Other
758 stars 253 forks source link

Refactor main() #203

Closed th-we closed 5 years ago

th-we commented 5 years ago

Refactored ~200 lines of code into task specific functions:

Motivation: Make the code more reusable for slightly different logging tasks. (My use case: log key frequency and n-gram statistics, respecting typing timing and pauses.)

kernc commented 5 years ago

I haven't diffed all the hunks, but the split up looks reasonable, and what little I tested still seems to work.

Thanks.