Use term-mode. Fixes #1