Open liuyxpp opened 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.
Thanks @liuyxpp for this observation.
Refactoring current logging to Info in this way sounds like a good idea. PR welcome.
Info
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
However, with the predefined control behavior, it is impossible to wrap the message before @info.