Troff is not a terminal editor, either. It's a document markup language, like Tex. It belongs to the family Runoff->nroff->troff->ditroff, and lives on as the horror in which UNIX manual pages are written.
I still remember using troff to create typeset output on a C/A/T phototypesetter hooked up to a PDP/11 running Version 7 Unix in the early 1980s. This article has a description of how that phototypesetter worked: https://www.spinellis.gr/blog/20131211/index.html
Still using Troff as my everyday text formatting software. Heirloom Troff works with UTF8 encoding, OTF fonts, Knuth's breaking line algorithm, etc. It does what I want without deciding by itself, has much better support for microtypography then LaTeX, etc.
Same with Xi, it is a GUI editor.
There are various Xi frontend implementations[1], some of which are entirely terminal based like xi-term[2]. Xi _itself_ does not implement any UI, but there is an example implementation in Xi-Mac[3].