diff --git a/audit/internal/tui/types.go b/audit/internal/tui/types.go index edc7d2c..86f0fb3 100644 --- a/audit/internal/tui/types.go +++ b/audit/internal/tui/types.go @@ -65,7 +65,11 @@ type formField struct { } func Run(application *app.App, runtimeMode runtimeenv.Mode) error { - program := tea.NewProgram(newModel(application, runtimeMode), tea.WithAltScreen()) + options := []tea.ProgramOption{} + if runtimeMode != runtimeenv.ModeLiveCD { + options = append(options, tea.WithAltScreen()) + } + program := tea.NewProgram(newModel(application, runtimeMode), options...) _, err := program.Run() return err } diff --git a/iso/overlay/etc/profile.d/bee.sh b/iso/overlay/etc/profile.d/bee.sh index e50991e..643b18f 100644 --- a/iso/overlay/etc/profile.d/bee.sh +++ b/iso/overlay/etc/profile.d/bee.sh @@ -9,13 +9,12 @@ menu() { fi } -# Auto-open TUI on local tty1 after boot. -# Exiting TUI returns to this shell (console prompt). -if [ -z "${BEE_TUI_AUTO_LAUNCHED:-}" ] \ - && [ -z "${SSH_CONNECTION:-}" ] \ +# On the local console, keep the shell visible and let the operator +# start the TUI explicitly. This avoids black-screen failures if the +# terminal implementation does not support the TUI well. +if [ -z "${SSH_CONNECTION:-}" ] \ && [ -z "${SSH_TTY:-}" ] \ - && [ "$(tty 2>/dev/null)" = "/dev/tty1" ] \ - && [ -x /usr/local/bin/bee-tui ]; then - export BEE_TUI_AUTO_LAUNCHED=1 - /usr/local/bin/bee-tui + && [ "$(tty 2>/dev/null)" = "/dev/tty1" ]; then + echo "Bee live environment ready." + echo "Run 'menu' to open the TUI." fi