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

Keeps filling scroll back buffer #6

Open
poetaman opened this issue Jul 28, 2021 · 3 comments
Open

Keeps filling scroll back buffer #6

poetaman opened this issue Jul 28, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@poetaman
Copy link

poetaman commented Jul 28, 2021

Hi as of now, each update to rsClock adds entire frame to scroll back buffer. It happens on both in iTerm2, and also in tmux in Alacritty.

Command used:

>>rsclock -S -c

Here's a video:

scrollbackbuffer.mp4
@valebes valebes self-assigned this Jul 28, 2021
@valebes
Copy link
Owner

valebes commented Aug 4, 2021

@reportaman Try now the latest release, 1.6

@valebes valebes added the bug Something isn't working label Aug 4, 2021
@poetaman
Copy link
Author

poetaman commented Aug 4, 2021

@valebes Yes now it does not write every update to scroll back buffer. Though it does leave the last frame on the screen. You might want to invoke smcup and rmcup to use alternate-screen feature like I do it in a wrapper for now:

#!/opt/homebrew/bin/zsh
tput smcup
rsclock "$@"
tput rmcup

src: https://unix.stackexchange.com/questions/27941/show-output-on-another-screen-and-return-to-normal-when-done
The feature is called as "alternate screen" officially in terminal terminology.

@valebes
Copy link
Owner

valebes commented Aug 4, 2021

@valebes Yes now it does not write every update to scroll back buffer. Though it does leave the last frame on the screen. You might want to invoke smcup and rmcup to use alternate-screen feature like I do it in a wrapper for now:

#!/opt/homebrew/bin/zsh
tput smcup
rsclock "$@"
tput rmcup

src: https://unix.stackexchange.com/questions/27941/show-output-on-another-screen-and-return-to-normal-when-done
The feature is called as "alternate screen" officially in terminal terminology.

Yeah, I know about that. Surely I can quickly change the code a little bit to use alternate screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants