Fix displaying editor in a terminal.

Unfortunately now the gogo function has to partially parse gogo arguments. Fortunately gogo allows
only one arg at a time so it's not that bad.