Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event: Echo #280

Merged
merged 2 commits into from
Nov 1, 2020
Merged

Event: Echo #280

merged 2 commits into from
Nov 1, 2020

Conversation

ThomasAdam
Copy link
Member

Introduce a new broadcast packet: echo which passes on the string from Fvwm's Echo command to interested modules.

@ThomasAdam ThomasAdam added this to the 1.0.2 milestone Oct 31, 2020
@ThomasAdam ThomasAdam self-assigned this Oct 31, 2020
Historically, Fvwm's "Echo" command has sent its output to stderr, and
then more recently to a dedicated log file.

However, modules have no way of therefore seeing the output from an echo
command, especially if it's used to gain information about the state of
fvwm for use in a shell script.

Therefore, add a new event, echo, which will broadcast to interested
modules, the message that was sent from the Echo command.

Currently supported by FvwmMFL and FvwmEvent.
In order to support external scripts, allow for messages to be sent in
bulk, as in:

   echo "set echo\nEcho hello" | nc -U $FVWMMFL_SOCKET

which would send both "set echo", and "Echo hello" to FvwmMFL (and hence
Fvwm).
@ThomasAdam ThomasAdam merged commit bf5a5a0 into master Nov 1, 2020
@ThomasAdam ThomasAdam deleted the ta/echo-broadcast branch November 1, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant