Something went wrong. Try again.
A reference for terminal control sequences whose examples run live in libghostty-vt compiled to WebAssembly.
Something went wrong. Try again.
control-codes website.nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us># SPDX-License-Identifier: MIT
# The site, built by Zine. The libghostty-vt wasm comes in as its own# derivation (ghostty-vt-wasm.nix), built from Ghostty's source tree with its# own dependency set, and Mermaid, for the diagrams, from its npm package# (mermaid.nix).{ lib, stdenvNoCC, callPackage, zig_0_17, nodejs, ghostty-vt-wasm, mermaid,}:stdenvNoCC.mkDerivation (finalAttrs: { pname = "control-codes-website"; version = "0.0.0";
src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./build.zig ./build.zig.zon ./tools ./website ]; };
# Generated from build.zig.zon by zon2nix; regenerate with # nix develop -c zon2nix --17 --nix=build.zig.zon.nix build.zig.zon deps = callPackage ./build.zig.zon.nix { name = "${finalAttrs.pname}-cache-${finalAttrs.version}"; inherit zig_0_17; };
nativeBuildInputs = [ zig_0_17 # tools/markdown.mjs, which writes the Markdown copies and llms.txt. nodejs ];
# The site is one `zig build release`, written straight into $out, so the # phases are spelled out rather than left to the Zig setup hook. buildPhase = '' runHook preBuild export ZIG_GLOBAL_CACHE_DIR="$TMPDIR/zig-cache" zig build release \ --system ${finalAttrs.deps} \ --prefix "$out" \ -Dvt-wasm=${ghostty-vt-wasm}/bin/ghostty-vt.wasm \ -Dmermaid=${mermaid}/mermaid.min.js \ -Dghostty-revision=${ghostty-vt-wasm.revision} runHook postBuild '';
dontInstall = true;})