rwc9u

Terminal emulator for Emacs using libghostty-vt (Ghostty's terminal engine)

45
2
100% credibility
Found Mar 21, 2026 at 45 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Zig
AI Summary

This repository creates a high-performance terminal emulator that runs directly inside Emacs with advanced support for colors, fonts, scrolling, and more.

How It Works

1
🕵️ Discover a better terminal for Emacs

You hear about a new tool that brings a super smooth terminal right inside your favorite Emacs editor, better than the old ones.

2
📝 Add it to your Emacs setup

You paste a short snippet into your Emacs configuration file, telling it to include this handy terminal.

3
⚙️ Watch it set itself up

Restart Emacs and it automatically grabs what it needs and prepares the terminal in the background, asking if you're ready.

4
🖥️ Launch the terminal

Hit a quick key combo like M-x gterm to open a fresh terminal window embedded in your Emacs.

5
⌨️ Run your commands

Type shell commands, enjoy full colors, cursor movement, and scroll through past output just like a standalone terminal.

6
Use cool extras

Paste text easily, drag files in, scroll with mouse wheel, and copy mode for selecting output effortlessly.

🎉 Boost your editing flow

Now you have a fast, feature-packed terminal always ready in Emacs, keeping everything in one place for ultimate productivity.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 45 to 45 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is emacs-libgterm?

emacs-libgterm brings a full terminal emulator into Emacs buffers, powered by Ghostty's high-performance VT engine and built in Zig as a dynamic module. It runs your shell—like zsh or bash—directly inside Emacs with ANSI colors, scrollback, cursor tracking, and drag-and-drop file paths, solving the pain of switching between Emacs and external terminals like those on mac, Linux, or Windows. Fire it up with M-x gterm, and it auto-builds via Zig, cloning dependencies on first load for Emacs 25+ with modules enabled.

Why is it gaining traction?

Unlike emacs-libvterm, it leverages Ghostty's SIMD-optimized parsing for snappier VT sequences, superior Unicode/grapheme handling, resize reflow, and Kitty graphics protocol—making prompts with Nerd Fonts align better and output feel native. Developers dig the incremental dirty-row rendering for smooth updates without full redraws, plus keybinds for copy mode (C-c C-k), paste (C-y), and viewport scroll (Shift-PageUp). It's a drop-in upgrade for Emacs terminal users eyeing arch terminal emulator performance or terminal emulator linux tweaks without leaving their editor.

Who should use this?

Emacs power users glued to their workflow, like backend devs running git clone in terminal github mac sessions or ops folks debugging via PTY in buffers. Ideal for mac terminal emulator fans on Apple Silicon needing Kitty protocol for images, or anyone tired of vterm's Unicode quirks in daily terminal github copilot or authentication flows. Skip if you need mouse support in htop or cross-platform stability yet.

Verdict

Promising prototype for next-gen Emacs terminals, but at 45 stars and 1.0% credibility, it's early—macOS-only testing, glyph width glitches, and no mouse events mean dragons ahead. Try if you're on Zig/Emacs and crave Ghostty speed; otherwise, stick to libvterm until it matures.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.