From 084a5ca3123ca5fb55933bc5070b7b3a979faa61 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 10 Jun 2024 10:41:37 +0200 Subject: [PATCH] enforce keyboard.Close is always executed to restore terminal Signed-off-by: Nicolas De Loof --- pkg/compose/up.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compose/up.go b/pkg/compose/up.go index b45e38e52..494b86154 100644 --- a/pkg/compose/up.go +++ b/pkg/compose/up.go @@ -95,6 +95,7 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options if err != nil { logrus.Warn("could not start menu, an error occurred while starting.") } else { + defer keyboard.Close() //nolint:errcheck isWatchConfigured := s.shouldWatch(project) isDockerDesktopActive := s.isDesktopIntegrationActive() isDockerDesktopComposeUI := s.isDesktopUIEnabled()