prompt user for editor if using a tty

If the editor is unset, prompts the user to select one. If stdout isn't TTY, it exits as before. (i dunno if anyone is using this non-interactively, but best not to break stuff)