ghostty/key.lisp
An explicitly owned reusable libghostty-vt keyboard encoder and event.
Create an owned Ghostty key encoder using its default allocator.
Release encoder and its reusable event. Repeated calls are harmless.
Encode one physical key fact using terminal's current keyboard modes.
action is :PRESS, :repeat, or :RELEASE. key is a Ghostty/W3C physical key
keyword. modifiers use :SHIFT, :CONTROL, :ALT (or :META), and :SUPER. text is
layout-produced printable text; unshifted-codepoint is its base codepoint.
An explicitly owned reusable libghostty-vt keyboard encoder and event.
(encoder)Logical negation of one test or raw truth value.
(&optional path)Load libghostty-vt from PATH, or search for its platform soname. PATH is useful for development builds which have not been installed. When it is NIL, LUV_GHOSTTY_LIBRARY is consulted before the platform soname search.
(result operation)(encoder)((variable) &body body)(modifiers)Test whether two compatible scalars are equal.
Logical disjunction of tests and raw truth values.
(pointer length)(encoder event)(encoder terminal action key
&key modifiers consumed-modifiers text unshifted-codepoint composing-p)Encode one physical key fact using TERMINAL's current keyboard modes. ACTION is :PRESS, :REPEAT, or :RELEASE. KEY is a Ghostty/W3C physical key keyword. MODIFIERS use :SHIFT, :CONTROL, :ALT (or :META), and :SUPER. TEXT is layout-produced printable text; UNSHIFTED-CODEPOINT is its base codepoint.
An explicitly owned libghostty-vt terminal.
One named verb over a session.
(terminal)
WITH-FOREIGN-STRING reports storage including its trailing NUL; Ghostty takes an explicit byte count and must not see that byte.