Commit Graph

9 Commits

Author SHA1 Message Date
Christoph Heiss
8fcdc5b266 tui, ui: switch over to JSON-based protocol
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-02-23 17:34:36 +01:00
Christoph Heiss
faaaab30e6 ui: stdio: log error if display_html() is called on stdio backend
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2024-02-06 14:23:01 +01:00
Christoph Heiss
7295fd7db0 ui: stdio: replace newlines with whitespaces in prompt messages
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>
2023-11-17 17:08:29 +01:00
Christoph Heiss
347014eec9 UI: fix perl warning if no progress text is passed
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-06-21 13:15:19 +02:00
Thomas Lamprecht
a8fbe0ff55 add Finished UI² message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-20 21:02:53 +02:00
Christoph Heiss
0c4590e073 UI: turn on autoflush for STDOUT
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>
2023-06-20 16:07:15 +02:00
Thomas Lamprecht
3f46361562 UI: add progress and process_events helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
0903eb5cf8 UI: add and use display_html helper
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>
2023-06-19 21:49:00 +02:00
Thomas Lamprecht
bc05a8fc6b add basic UI plugin infrastructure
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-19 21:49:00 +02:00