IterationControl.jl icon indicating copy to clipboard operation
IterationControl.jl copied to clipboard

Support ProgressMeter or other progress logging utiliites such Term.jl?

Open liuyxpp opened this issue 3 years ago • 1 comments

Currently, predefined controls emits message by using @info which will break ProgressMeter. The issue is that the progress meter will no longer stay at the same place as the @info displays. The suggested fix is to wrap the message in rpad such as

@info rpad("my message ...", displaysize(stdout)[2])

However, with the predefined control behavior, it is impossible to wrap the message before @info.

liuyxpp avatar May 19 '22 03:05 liuyxpp

Thanks @liuyxpp for this observation.

Refactoring current logging to Info in this way sounds like a good idea. PR welcome.

ablaom avatar May 19 '22 19:05 ablaom