Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous "activity detected" within tmux #339

Open
Nemo157 opened this issue Aug 29, 2024 · 2 comments
Open

Continuous "activity detected" within tmux #339

Nemo157 opened this issue Aug 29, 2024 · 2 comments

Comments

@Nemo157
Copy link
Contributor

Nemo157 commented Aug 29, 2024

I tried using tmux's monitor-activity setting to mark a background window containing iamb when something changes, but this seems to trigger the instant I move off the window. I wonder if iamb is continuously re-rendering instead of only on changes? I'm not sure how else this would be being triggered.

@ulyssa
Copy link
Owner

ulyssa commented Aug 30, 2024

iamb has a 1 second timeout where if it it doesn't get a keypress it will redraw the screen in case there are any changes (new messages, typing notifications, new device verifications, etc.). I thought that ratatui would avoid writing anything out to the terminal in the case that nothing changes, but maybe it writes some constant number of bytes regardless of how much has actually changed. (It's also possible that there is something small changing each time, like the read notification markers.)

@Nemo157
Copy link
Contributor Author

Nemo157 commented Sep 2, 2024

I don't think it's the 1 second timeout, the marker appears instantly when I switch away. I did just notice that the rendering changes when focus is lost (> on current entryline disappears and cursor changed from filled to outline), so maybe that's what's being detected, though I'd hope that tmux waits till after the focus loss event to start detecting new activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants