From ee2456c3fd617a4afb0d66ac2af87ac1bffd6073 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Fri, 20 Mar 2026 21:01:46 +0100 Subject: [PATCH] clear terminal between tasks and give users a message confirming they are done --- cmd/pm/runner.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/pm/runner.go b/cmd/pm/runner.go index a4de2c6..175b565 100644 --- a/cmd/pm/runner.go +++ b/cmd/pm/runner.go @@ -147,6 +147,10 @@ func runStartCmd(cmd *cobra.Command, args []string) error { if err := taskLoop(cmd.Context(), app, surveyTasks, interfaces); err != nil { return returnIfUserQuit(err, "task loop failed") } + + //clear the terminal after the survey is done + fmt.Println("\033[H\033[2J") + cmd.Println(style.TitleStyle.Render("Thank you for completing the survey! You are now finished and can safely close the terminal.")) return nil } @@ -188,6 +192,7 @@ func taskLoop(ctx context.Context, application *task.App, surveyTasks map[string return fmt.Errorf("failed to write task details: %w", err) } + fmt.Println("\033[H\033[2J") if err := runner.Run(ctx, t, selected, tasks.InterfaceToType(selected)); err != nil { return err }