aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ai-vterm--default-geometry.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/test-ai-vterm--default-geometry.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/test-ai-vterm--default-geometry.el')
-rw-r--r--tests/test-ai-vterm--default-geometry.el56
1 files changed, 0 insertions, 56 deletions
diff --git a/tests/test-ai-vterm--default-geometry.el b/tests/test-ai-vterm--default-geometry.el
deleted file mode 100644
index f8ec08c9..00000000
--- a/tests/test-ai-vterm--default-geometry.el
+++ /dev/null
@@ -1,56 +0,0 @@
-;;; test-ai-vterm--default-geometry.el --- Tests for host-aware display defaults -*- lexical-binding: t; -*-
-
-;;; Commentary:
-;; ai-vterm's default display geometry is host-aware: a laptop opens the
-;; agent from the bottom (75% height), a desktop opens it from the right
-;; (50% width). `cj/--ai-vterm-default-direction' and
-;; `cj/--ai-vterm-default-size' encapsulate the `env-laptop-p' branch;
-;; they feed the default fallbacks in `cj/--ai-vterm-capture-state' and
-;; `cj/--ai-vterm-display-saved'.
-;;
-;; `env-laptop-p' is stubbed per-test so the assertions are deterministic
-;; regardless of the host the suite runs on.
-
-;;; Code:
-
-(require 'ert)
-(require 'cl-lib)
-
-(add-to-list 'load-path (expand-file-name "modules" user-emacs-directory))
-(require 'ai-vterm)
-
-(ert-deftest test-ai-vterm--default-direction-laptop ()
- "Normal: on a laptop the default direction is `below'."
- (cl-letf (((symbol-function 'env-laptop-p) (lambda () t)))
- (should (eq (cj/--ai-vterm-default-direction) 'below))))
-
-(ert-deftest test-ai-vterm--default-direction-desktop ()
- "Normal: on a desktop the default direction is `right'."
- (cl-letf (((symbol-function 'env-laptop-p) (lambda () nil)))
- (should (eq (cj/--ai-vterm-default-direction) 'right))))
-
-(ert-deftest test-ai-vterm--default-size-laptop ()
- "Normal: on a laptop the default size is `cj/ai-vterm-laptop-height'."
- (let ((cj/ai-vterm-laptop-height 0.75)
- (cj/ai-vterm-desktop-width 0.5))
- (cl-letf (((symbol-function 'env-laptop-p) (lambda () t)))
- (should (= (cj/--ai-vterm-default-size) 0.75)))))
-
-(ert-deftest test-ai-vterm--default-size-desktop ()
- "Normal: on a desktop the default size is `cj/ai-vterm-desktop-width'."
- (let ((cj/ai-vterm-laptop-height 0.75)
- (cj/ai-vterm-desktop-width 0.5))
- (cl-letf (((symbol-function 'env-laptop-p) (lambda () nil)))
- (should (= (cj/--ai-vterm-default-size) 0.5)))))
-
-(ert-deftest test-ai-vterm--default-size-respects-custom-values ()
- "Boundary: the helper returns the customized values, not the literals."
- (let ((cj/ai-vterm-laptop-height 0.6)
- (cj/ai-vterm-desktop-width 0.33))
- (cl-letf (((symbol-function 'env-laptop-p) (lambda () t)))
- (should (= (cj/--ai-vterm-default-size) 0.6)))
- (cl-letf (((symbol-function 'env-laptop-p) (lambda () nil)))
- (should (= (cj/--ai-vterm-default-size) 0.33)))))
-
-(provide 'test-ai-vterm--default-geometry)
-;;; test-ai-vterm--default-geometry.el ends here