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

Single line updates not showing #231

Open
EvertEt opened this issue Mar 10, 2021 · 3 comments
Open

Single line updates not showing #231

EvertEt opened this issue Mar 10, 2021 · 3 comments

Comments

@EvertEt
Copy link
Contributor

EvertEt commented Mar 10, 2021

When using the following python script and commands, no updates are printed (no progress dots)

import sys
from time import sleep

sys.stdout.write("starting\n")
while True:
    sys.stdout.write(".")
    sleep(3)
python -u progress.py > test.log
frontail test.log

Is there a way to get these updates to match the tail -F command which does show and update the progress dots line?

@mthenw
Copy link
Owner

mthenw commented Mar 17, 2021

yeah, the thing is that this script doesn't produce new lines. Frontal doesn't react to those changes.

@EvertEt
Copy link
Contributor Author

EvertEt commented Mar 17, 2021

Thank you for your response. Is this on purpose? Would there be a way or option to enable this to get closer to the real tail behaviour?

@mthenw
Copy link
Owner

mthenw commented Mar 17, 2021

It's not on purpose. Assuming that there is always a new line simplifies the implementation. I've never considered changing that behaviour as it would require lots of changes (I guess).

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