aboutsummaryrefslogtreecommitdiff
path: root/tests/testutil-vterm-buffers.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-05 05:28:58 -0500
committerCraig Jennings <c@cjennings.net>2026-06-05 05:28:58 -0500
commitebdf9e466b0e1f86e9b7d76650ac32408273e7a7 (patch)
treedab9b453f3a93c324b5388b3843502a088c7ed46 /tests/testutil-vterm-buffers.el
parentc094b2e4e64530379a9cb273303308a9affcabf6 (diff)
downloaddotemacs-ebdf9e466b0e1f86e9b7d76650ac32408273e7a7.tar.gz
dotemacs-ebdf9e466b0e1f86e9b7d76650ac32408273e7a7.zip
feat(term): replace vterm with ghostel as the terminal engine
I swapped the terminal engine from vterm to ghostel (libghostty-vt) everywhere. term-config replaces vterm-config (the F12 terminal, the C-; x menu, tmux history capture), and ai-term replaces ai-vterm (the F9 Claude-agent launcher). ghostel renders the agent TUI without vterm's flicker under heavy streaming, and one engine now covers every terminal workflow. Two behavior changes fall out of the swap. F9 launches in a terminal frame now: ghostel renders in TTY frames, so the old GUI-only guard is gone. Terminal windows no longer dim when unfocused: ghostel resolves its palette into the native module per-terminal, so there's no per-window color hook to dim through the way vterm had. auto-dim drops its vterm color-advice path, the dashboard Terminal button launches ghostel, and the vterm and vterm-toggle packages are removed. The tmux pane-history and copy-mode machinery carried over unchanged. It keys on the pty tty, which ghostel exposes.
Diffstat (limited to 'tests/testutil-vterm-buffers.el')
-rw-r--r--tests/testutil-vterm-buffers.el51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/testutil-vterm-buffers.el b/tests/testutil-vterm-buffers.el
deleted file mode 100644
index 17f0a69a..00000000
--- a/tests/testutil-vterm-buffers.el
+++ /dev/null
@@ -1,51 +0,0 @@
-;;; testutil-vterm-buffers.el --- Shared helpers for vterm/agent buffer tests -*- lexical-binding: t; -*-
-
-;;; Commentary:
-;; Cleanup helpers and a fake-vterm constructor used across the
-;; ai-vterm and vterm-toggle test files. Before this module, each
-;; test file re-implemented the same `(dolist (b (buffer-list))
-;; (when (string-prefix-p ...) (kill-buffer b)))' loop with a
-;; different prefix.
-
-;;; Code:
-
-(require 'cl-lib)
-
-(defun cj/test--call-as-gui (fn)
- "Call FN with `env-terminal-p' stubbed to return nil (a GUI frame).
-
-The AI-vterm interactive commands refuse to run in a terminal frame
-via `cj/--ai-vterm-refuse-in-terminal'. A batch test run is itself a
-terminal frame, so tests that exercise the GUI-frame window behavior
-of those commands call them through this helper to present a GUI
-context."
- (cl-letf (((symbol-function 'env-terminal-p) (lambda () nil)))
- (funcall fn)))
-
-(defun cj/test--kill-buffers-matching-prefix (prefix)
- "Kill all live buffers whose name starts with PREFIX."
- (dolist (b (buffer-list))
- (when (string-prefix-p prefix (buffer-name b))
- (kill-buffer b))))
-
-(defun cj/test--kill-agent-buffers ()
- "Kill all live buffers whose name matches the AI-vterm prefix \"agent [\"."
- (cj/test--kill-buffers-matching-prefix "agent ["))
-
-(defun cj/test--kill-test-vterm-buffers ()
- "Kill all live buffers whose name starts with \"*test-vterm\"."
- (cj/test--kill-buffers-matching-prefix "*test-vterm"))
-
-(defun cj/test--make-fake-vterm-buffer (name)
- "Return a buffer named NAME with `major-mode' set to `vterm-mode'.
-
-Avoids actually launching a vterm process by setting the mode
-buffer-locally. Used by tests that need a buffer satisfying the
-vterm-mode predicate without the side-effects of `(vterm)'."
- (let ((buf (get-buffer-create name)))
- (with-current-buffer buf
- (setq-local major-mode 'vterm-mode))
- buf))
-
-(provide 'testutil-vterm-buffers)
-;;; testutil-vterm-buffers.el ends here