forked from https://launchpad.net/terminator