There is a Debian package called Wordgrinder. It is the closest thing to a text-based word processor I could find. I haven't tried it, however. So, I don't know what it can do.