Never mind. I wrote a little shell script to solve the problem: #!/bin/bash xterm -e timidity -in $1 So now I just tell mozilla to run that shell script when I click on a midi file, and a little xterm window pops up with a nice ncurses interface.