Skip to content

Commit

Permalink
FvwmPrompt: accept commands on stdin
Browse files Browse the repository at this point in the history
It was meant to be possible to use FvwmPrompt as FvwmCommand, as in:

    FvwmPrompt Exec exec xterm

This seemingly never worked.
  • Loading branch information
ThomasAdam committed Feb 15, 2024
1 parent 4af6dbe commit 5d78fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/FvwmPrompt/FvwmPrompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5d78fa1

Please sign in to comment.