Using Emacs as a Tui
Posted3 months agoActive2 months ago
blog.natfu.beTechstory
calmpositive
Debate
20/100
EmacsTuiTerminal Emulators
Key topics
Emacs
Tui
Terminal Emulators
The article discusses using Emacs as a terminal user interface (TUI) and shares tips for improving ergonomics, sparking a discussion on Emacs usage and terminal emulator features.
Snapshot generated from the HN discussion
Discussion Activity
Moderate engagementFirst comment
3h
Peak period
10
6-9h
Avg / period
2.9
Comment distribution26 data points
Loading chart...
Based on 26 loaded comments
Key moments
- 01Story posted
Oct 19, 2025 at 6:42 PM EDT
3 months ago
Step 01 - 02First comment
Oct 19, 2025 at 9:53 PM EDT
3h after posting
Step 02 - 03Peak activity
10 comments in 6-9h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 21, 2025 at 5:09 PM EDT
2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45638702Type: storyLast synced: 11/20/2025, 8:00:11 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
- 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.
Using it on the terminal only over telnet when a remote X session wasn't possible.
[1]: https://codeberg.org/akib/emacs-eat
[1] https://github.com/akermu/emacs-libvterm/issues/313
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.
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.
https://github.com/kovidgoyal/kitty/issues/3802
https://github.com/kovidgoyal/kitty/pull/3544
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.
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.
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.