Commit Graph
52 Commits
Author SHA1 Message Date
ddidderr 3ce3225642 docs(rewrite): status update 2026-10-12 14:30:14 +02:00
ddidderr 8f3eee6c98 docs(rewrite): status update 2026-10-12 14:20:59 +02:00
ddidderr 7dd54833b9 docs(rewrite): status update 2026-10-12 14:02:10 +02:00
ddidderr 2a49cd0d1d docs(rewrite): status update 2026-10-12 13:54:26 +02:00
ddidderr 1ff1bab0e8 docs(rewrite): status update 2026-10-12 13:48:07 +02:00
ddidderr a41831c631 docs(rewrite): status update 2026-10-12 13:24:19 +02:00
ddidderr 7b3fffded3 docs(rewrite): status update 2026-10-12 12:58:13 +02:00
ddidderr 73ed73831e docs(rewrite): status update 2026-10-12 12:46:40 +02:00
ddidderr ecd67c8f3e docs(rewrite): status update 2026-10-12 12:35:51 +02:00
ddidderr 7480f99d91 docs(rewrite): status update 2026-10-12 12:07:53 +02:00
ddidderr 7087ae8a3e docs(rewrite): status update 2026-10-12 11:57:13 +02:00
ddidderr 70c250cf2d docs(rewrite): status update 2026-10-12 11:09:29 +02:00
ddidderr 207782317d docs(rewrite): status update 2026-10-12 11:01:24 +02:00
ddidderr 1327e63811 docs(rewrite): status update 2026-10-12 10:54:15 +02:00
ddidderr ffc91c31e4 docs(rewrite): status update 2026-10-12 10:34:13 +02:00
ddidderr dbdac96dfa docs(rewrite): status update 2026-10-12 10:27:45 +02:00
ddidderr e57e54cbf2 docs(rewrite): status update 2026-10-12 10:12:12 +02:00
ddidderr a5deda9d7b docs(rewrite): status update 2026-10-12 10:06:14 +02:00
ddidderr 0f898d3e41 docs(rewrite): status update 2026-10-12 09:32:55 +02:00
ddidderr 41e0b9cb68 docs(rewrite): status update 2026-10-12 08:45:38 +02:00
ddidderr bc297c823b docs(rewrite): status update 2026-10-12 08:22:50 +02:00
ddidderr 2d897a61ad docs(rewrite): status update 2026-10-12 08:16:26 +02:00
ddidderr 5568f99bae docs(rewrite): status update 2026-10-12 06:55:01 +02:00
ddidderr d514dca6ee docs(rewrite): phase 8 status update 2026-10-12 06:38:49 +02:00
ddidderr 020beb2d75 docs(rewrite): phase 8 status update 2026-10-12 06:03:20 +02:00
ddidderr 452b782149 feat(macos): port Ghostty's macOS code paths (Metal, CoreText, Darwin)
Ports the macOS-specific Zig code behind cfg(target_os = "macos"):
- renderer: a GraphicsApi trait with generic::Renderer<G>; Metal backend
  (all renderer/metal/* files, shaders.metal verbatim, runtime library
  compile, IOSurface layer, CVDisplayLink), shadertoy -> MSL via naga;
  OpenGL remains the backend elsewhere.
- font: CoreText face, shaper and discovery with build.rs backend
  selection (coretext default; coretext-freetype / coretext-harfbuzz /
  coretext-noshape features), no fontconfig/freetype/harfbuzz on Apple.
- input: KeymapDarwin via UCKeyTranslate, option-as-alt, mac keycodes.
- os: macos, mach, cf_release_thread, NSProcessInfo args and macOS
  branches; config: macOS defaults, keybinds, Application Support paths.
- termio/core: login(1) wrapping, openpty/execvpe, Darwin child exit
  handling, os_log logging.

Compile-checked for aarch64/x86_64-apple-darwin (clippy -D warnings
clean) using the cross setup in docs/rewrite/notes/macos-M1.md; cannot
run here. The embedded runtime/C API (embedded.zig) is the next step.

Also includes the cross-platform integration edits shared by the crash,
verification, Windows and macOS work (Cargo target-gating, thread
crash-context hooks, apprt-gtk surface/IME refactor, termio/os cfg
gates), a cfg fix so ghostty-config builds on wasm32, and an allow for
the intentional recursion in the crash overflow test.

Test Plan:
- cargo test --workspace (3224 passed)
- cargo clippy --workspace --all-targets -- -D warnings
- cargo check --target aarch64-apple-darwin -p ghostty-renderer (with
  the documented cross env)
2026-10-12 06:02:39 +02:00
ddidderr 28f55ff2dd docs(rewrite): phase 8 status update 2026-10-12 05:22:10 +02:00
ddidderr 5b9a0723a9 docs(rewrite): extend scope to all of Ghostty's Zig code (phase 8) 2026-10-12 05:05:36 +02:00
ddidderr bdf9f1c362 docs(rewrite): mark the rewrite complete in STATUS 2026-10-12 05:03:59 +02:00
ddidderr 89203b9063 docs(rewrite): status update 2026-10-12 04:41:00 +02:00
ddidderr 79486601b5 docs(rewrite): status update 2026-10-12 04:09:18 +02:00
ddidderr 55989475fc docs(rewrite): status update 2026-10-12 03:58:50 +02:00
ddidderr be6d706ba5 test(core): add headless end-to-end tests and fix bugs they found
Adds crates/ghostty-core/tests/e2e_*.rs: 81 tests that drive the real
core Surface, termio, pty and child processes through a fake runtime
(recording apprt actions, in-memory clipboard) with a headless renderer
(ghostty-renderer/src/headless.rs). They cover keys (legacy, DECCKM,
kitty, modifyOtherKeys), keybinding actions and sequences, mouse
selection/reporting/scrolling/links, clipboard incl. OSC 52 and paste
safety, resize, focus, titles/pwd/bell/notifications/progress, child
exit, and IME preedit.

Fixes for issues found by the tests and by the Codex audit
(docs/rewrite/notes/review-core-codex.md, all 9 items):
- replacing a selection with copy-on-select panicked (stale tracked
  handles); global new_window no longer inherits a parent; the child
  environment uses the runtime's env wholesale so GTK's removals stick;
  Flatpak host resources path; locale recovery (ensureLocale) in
  apprt-gtk before GTK init and for CLI actions; failed screen-file
  opens propagate errors; OSC 52 base64 rules, CSI/ESC binding length
  limits and GHOSTTY_LOG parsing match Zig.
- Also includes V2's termio cleanups (tmux viewer wiring in the stream
  handler, Pty slave semantics docs, shared cgroup wait loop).

apprt-gtk gains a debug input replay hook (GHOSTTY_DEBUG_INPUT_SCRIPT)
exercising the real GTK key path. With it, the real app was verified on
Wayland: typing and output, new tab, splits, select-all/copy/paste and
font size all work (docs/rewrite/notes/verification-V1.md). Not yet
exercised at GTK level: mouse, real IM-context IME, clipboard dialogs.

Test Plan:
- cargo test --workspace (2983 passed)
- cargo test -p ghostty-core --tests (81 e2e tests)
2026-10-12 03:58:19 +02:00
ddidderr e2bd4c28da docs(rewrite): status update 2026-10-12 03:46:21 +02:00
ddidderr c4a4d1dcc3 docs(rewrite): status update 2026-10-12 02:08:22 +02:00
ddidderr aa1126e07d docs(rewrite): status update 2026-10-12 01:39:42 +02:00
ddidderr ac89525014 docs(rewrite): status update for phase 7 2026-10-12 01:35:00 +02:00
ddidderr 9c3eeeba50 docs(rewrite): status update 2026-10-11 23:10:31 +02:00
ddidderr 0c92dd0966 docs(rewrite): status after GTK port and terminal integration 2026-10-11 22:57:46 +02:00
ddidderr 72434a1255 docs(rewrite): status update 2026-10-11 22:52:28 +02:00
ddidderr 3742a131b8 docs(rewrite): status update 2026-10-11 22:50:42 +02:00
ddidderr f43c0cd00f docs(rewrite): record remaining PageList API requests 2026-10-11 22:41:26 +02:00
ddidderr e495ae72f1 docs(rewrite): status update 2026-10-11 22:40:10 +02:00
ddidderr ecf16f4a97 docs(rewrite): status update 2026-10-11 22:39:16 +02:00
ddidderr ab9c3fc9db docs(rewrite): status update 2026-10-11 22:28:40 +02:00
ddidderr 99d3ff9d41 docs(rewrite): status update 2026-10-11 22:26:45 +02:00
ddidderr 8e0a94dff2 docs(rewrite): status after cli port 2026-10-11 22:22:01 +02:00
ddidderr 5462bd8e3e docs(rewrite): status update 2026-10-11 22:13:47 +02:00
ddidderr 6792799fbe docs(rewrite): status update 2026-10-11 22:00:52 +02:00
ddidderr 5bacb4d90b docs(rewrite): update status after config port 2026-10-11 22:00:12 +02:00