Commit Briefs

Omar Polo

refactor control_notify

it's awkward to call it with the address of the imsgev struct inside the ctl_conn struct. Just relay the info to every client in monitor mode. After all, if a client is in monitor mode *and* issues commands, it's not strange that they're echoed back (note that this is currently impossible, the command line client can either issue commands or be in monitor mode.)




Omar Polo

amused-monitor: rewrite excerpt function

instead of passing "half" of the context wanted, just take the number of lines wanted. switch to a circular buffer to store the lines instead of shelling out (badly) to grep -C.


Omar Polo

initialize status_format early in the main()

otherwise we may leave it NULL (it's set only in ctl_status) and crash in print_status.


Omar Polo

handle when the duration is zero


Omar Polo

fix some leftovers

better to use a control variable rather than `last' from a subroutine



Omar Polo

document status -f


Omar Polo

allow to customize the output of amused status

This add a -f flag (that falls back to $AMUSED_STATUS_FORMAT) to control which field to print and in which order.



Omar Polo

reword sentence


Omar Polo

document the `seek' subcommand