pve-installer/proxmox-tui-installer
Christoph Heiss d388c74344 tui: views: add new TabbedView component
Add a tabbed view component, for usage in the advanced disk options
dialog when selecting ZFS or Btrfs (for now). Works pretty much the same
as its GUI counterpart, as much as that is possible.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
2024-07-04 11:24:12 +02:00
..
src tui: views: add new TabbedView component 2024-07-04 11:24:12 +02:00
Cargo.toml tui-installer: add dependency for new common crate 2023-11-02 20:04:24 +01:00
README.md tui: add README describing some debugging specifics 2023-06-14 10:39:56 +02:00

proxmox-tui-installer

Testing/debugging

stderr redirection

If something needs to be printed for debugging (e.g. using eprintln!() or dbg!()), output redirection can be used. Open a second terminal and get the file name of the terminal using the tty command:

$ tty
/dev/pts/6

Now, simply run the installer using:

$ cargo run 2>/dev/pts/6

All stderr output will then show up in the other terminal.

Specific terminal size

To test the installer with a specific output size, the stty command can be used. For example, to set it to a standard 80x25 terminal:

$ stty columns 80 rows 25