The line-based protocol currently used cannot handle this properly, so
introduce this as a stop-gap measure - otherwise messages might be cut
off.
This makes it work for now, and the text is wrapped correctely for the
screen width in the TUI anyway - which is the only user of this so far.
Will be reworked properly later on.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
[ TL: add fix-me comment ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Otherwise, when STDOUT is connected to a pipe, it will not get flushed
completely after each message, which might than hangs the installer UI.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This is used often, among other things also for some abort code, so
move the essence to the UI.
Allows to drop one global variable for proxinstall, which is a nice
side effect.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>