Skip to content

What's the most appropriate way to detect when a user is idle or not using a textual app? #4700

Answered by willmcgugan
dontascii asked this question in Q&A
Discussion options

You must be logged in to vote

I think you are on the right track, but I think it will be simpler that what you have in mind. Implement on_mount, and start or reset a timer on an inout event, for whatever period you would consider idle.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dontascii
Comment options

Answer selected by dontascii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants