fix(launcher): clear screen on exit

This commit is contained in:
bunny winter 2025-02-11 18:46:59 -06:00
parent 6a10a08d9e
commit f1ab5eb07b
Signed by: nya
SSH key fingerprint: SHA256:aFOeJZAb3Y7XJxd+BReehNPp/dmurGW9M13mIayeOm0

View file

@ -268,6 +268,11 @@ func Run(cmd *cobra.Command, args []string) error {
os.Exit(1)
}
// TODO this feels hacky and should probably be replaced
execCmd := exec.Command("clear")
execCmd.Stdout = os.Stdout
execCmd.Run()
if finalModel, ok := finalModel.(model); ok && finalModel.shouldExec != "" {
execCmd := exec.Command(finalModel.shouldExec)
execCmd.Stdin = os.Stdin