Using Emacs as a TUI
blog.natfu.be
blog.natfu.be
That means we can have floating autocomplete menus, notification boxes, dialog-like interactions - all interesting possibilities that we've had in the GUI for a long time.
By the way, recently Kitty introduced variable sized text, which probably could be integrated in Emacs, too, to have my favorite feature - font resize per frame :)
It also works fine in many other terminals like iTerm2 and Ghostty. Last I tried, they don’t report Super though.
Yes, that is a concern, but this is a post about Emacs as a TUI, and sidetracking it to discuss a hot topic about another piece of software is concern trolling.
For example, pressing 0 to go to beginning of line goes to before the $PS1, rather than the input beginning, going from NORMAL → INSERT inserts text at the end instead of at the cursor, Emacs motion keys doesn't work, etc. I think if I take some time to remap the key it might work, but usually I just switch to Emacs mode or just restrict myself to use only cursor key to navigate.
There are some minor differences. For example, I believe -nw can still use the X support to access the GUI clipboard, while -nox requires enabling e.g. OSC-52 support to do the same.
Using it on the terminal only over telnet when a remote X session wasn't possible.
- Image previews (for file management with dired/dirvish)
- PDF viewing
- In-buffer images (e.g. profile pictures in git log with Magit)
- Browsing simple HTML pages (e.g. API docs)
There's probably more I've yet to discover.
Besides, it turns out, setting up emacslient for quick editing, or even for bringing up Dired to use as a directory lookup and switcher is also very nice.