From 48b8d323b9a5aa315851e81fa4327018d855e9c6 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Thu, 15 Feb 2024 18:41:50 +0000 Subject: [PATCH] FvwmPrompt: accept commands on stdin It was meant to be possible to use FvwmPrompt as FvwmCommand, as in: FvwmPrompt Exec exec xterm This seemingly never worked. --- bin/FvwmPrompt/FvwmPrompt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/FvwmPrompt/FvwmPrompt.go b/bin/FvwmPrompt/FvwmPrompt.go index 03b748edb..5dd77b9a9 100644 --- a/bin/FvwmPrompt/FvwmPrompt.go +++ b/bin/FvwmPrompt/FvwmPrompt.go @@ -152,7 +152,7 @@ func main() { go connectToFMD(shell, readFromFMD, writeToFMD) if isInteractive { - shell.Process(os.Args[1:]...) + handleInput(nil, strings.Join(os.Args[1:], " "), writeToFMD); } else { red := color.New(color.FgRed).SprintFunc() shell.Actions.SetPrompt(red(*cmdLineArgs.promptText))