-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
Are new line characters "\n" allowed in the Dual Line feature? #188
Comments
Hello @jakemayfield, thanks man! To guarantee the dual line (or even the default single line) mode works, I have to filter new line characters. So, at the end of a refresh, I know how to return the cursor to the bar, either on the same or on the line above... Perhaps it would be possible to support something like this, but it seems a very niche feature, because Can't you use the best of both worlds? You could put on the dual line some real-time data that the user doesn't need a history for, and print the ones that the user could benefit from having the history on screen. |
Actually, I think I can make this work! |
May I ask if this feature has been implemented? I tried to enter '\r\n' in dual line mode but failed |
Hi @deerandsea, sure you can, but I didn't have the time to work on this yet. Alive-progress project has started as a fun experience for me, but with the scale it has achieved, I can't work on all the feature requests without any sponsorship. So, I do things when I feel like it, for the sheer pleasure of doing them. And at the moment, my pleasure is in Rust. |
Hi @rsalmei , thank you for this awesome library!
Referring to #135, are new line characters
\n
allowed inbar.text
? Mine do not seem to be taking and keeps everything showing only on a single line. I've also tried using\r\n
, with no success.My use case is that I output performance stats, with each metric being on its own line, that update in real-time as I'm going through the loop. Since I'm looking at 10+ lines, I do not want to print these lines over and over again as they continuously update throughout the loop. It would be much better to have them display below the progress bars.
Thanks!
The text was updated successfully, but these errors were encountered: