FYI the default macOS terminal does not run this properly, but iTerm2 does mostly :) Only the right-click does not seem to do anything. For others wondering why their fishies looked different from the screenshots: try resizing your terminal!
Interesting.. probably a mistake on my part to make it a right click instead of a keypress, I'll change it after judging. In my testing just now I right clicked a bunch of times and half the time it triggered iterm2's own contextual menu, but then the other half it worked, seemingly at complete random. weird.