From f8679adf952f68ec178c523afcbfdac24781dd35 Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Thu, 17 Sep 2026 06:51:09 +0200 Subject: [PATCH] fix: use maximized instead of fullscreen and disable quit keybindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change wt -F (fullscreen) to wt -M (maximized) — keeps titlebar and taskbar - Use DisableQuitKeybindings() in wt mode to fully disable q and ctrl+c - Hide help text in wt mode to remove visible q quit hint --- cmd/kctl-tui/full.go | 2 +- cmd/kctl-tui/panel.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/kctl-tui/full.go b/cmd/kctl-tui/full.go index 9777411..75c0eec 100644 --- a/cmd/kctl-tui/full.go +++ b/cmd/kctl-tui/full.go @@ -355,7 +355,7 @@ func (m *fullModel) startWtSession() tea.Cmd { kubeexec.VerboseLog("[debug] panelCmd=%s\n", panelCmd) kubeexec.VerboseLog("[debug] k9sCmdA=%s\n", k9sCmdA) - wtCmd := fmt.Sprintf("wt -F new-tab %s ; split-pane -H -s 0.75 %s", panelCmd, k9sCmdA) + wtCmd := fmt.Sprintf("wt -M new-tab %s ; split-pane -H -s 0.75 %s", panelCmd, k9sCmdA) if len(m.cfg.Envs) > 1 { envB := m.cfg.Envs[1] diff --git a/cmd/kctl-tui/panel.go b/cmd/kctl-tui/panel.go index 55313dc..98b4e79 100644 --- a/cmd/kctl-tui/panel.go +++ b/cmd/kctl-tui/panel.go @@ -95,7 +95,8 @@ func newPanelModel(context, ns, team string) *panelModel { m := &panelModel{context: context, ns: ns, team: team, cfg: cfg, step: stepEnvMenu, list: l, input: ti} if m.isWtMode() { - l.KeyMap.Quit.SetEnabled(false) // "q" deaktivieren, "ctrl+c" bleibt + l.DisableQuitKeybindings() + l.SetShowHelp(false) } if loadErr != nil { m.err = fmt.Errorf("config load failed: %w", loadErr)