It looks like Neovim has a bug: if `startinsert` is called using `command()` then `-- TERMINAL --` gets replaced with `-- --` (and also a cursor appears).