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

Handle \r character in Packer logs #35

Open
cb372 opened this issue May 26, 2016 · 0 comments
Open

Handle \r character in Packer logs #35

cb372 opened this issue May 26, 2016 · 0 comments

Comments

@cb372
Copy link
Contributor

cb372 commented May 26, 2016

Ansible does some fancy-pants logging in which it overwrites the line using \r. Currently we print this in a rather unsightly way:

(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58006 files and directories currently installed.)

We could avoid this if we implemented proper support for \r, i.e. delete everything from the start of the current line to this point.

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

No branches or pull requests

1 participant