JuliaAI / IterationControl.jl

A package for controlling iterative algorithms
Other
23 stars 1 forks source link

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

Open liuyxpp opened 2 years ago

liuyxpp commented 2 years ago

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.

ablaom commented 2 years ago

Thanks @liuyxpp for this observation.

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