Commits


contrib/amused-monitor: make use of the new extended info adjust amused-monitor not to query amused on certain events but use the new extra info that `amused monitor' prints.


amused-monitor: fix sprintf error for tracks hours long


amused-monitor: move timekeeping after initial state sync


pledge amused-monitor


amused-monitor: fix rewind


fix off by one in the offsets line


add backspace/C-h to rewind the song


amused-monitor: fix rounding round() rouds towards infinity, but for the line counting i need a round towards zero, the one provided by int()


amused-monitor: fix bug when window is taller than playlist adjust the index before reordering the entries, otherwise we may try to read out-of-bound because the reading loop wraps at $lines, not at $tmp size.


amused-monitor: support consume too (s/repeat/mode)


amused-monitor: no need to list all the events `amused monitor' defaults to report all the events, that should be enough.


amused-monitor: add a round function and simplify some bits


amused-monitor: drop unused `min' function


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.


handle when the duration is zero