1 Entry and lifecycle
(require tui/kitty) (with-kitty (lambda () (screen-clear) (define ev (read-event)) ...))
procedure
(with-kitty thunk [ #:flags flags #:strict? strict? #:probe-graphics? probe-graphics?]) → any thunk : (-> any) flags : exact-nonnegative-integer? = 1 strict? : boolean? = #f probe-graphics? : boolean? = #f
procedure
(with-kitty-nobuffer thunk [ #:flags flags #:strict? strict? #:probe-graphics? probe-graphics?]) → any thunk : (-> any) flags : exact-nonnegative-integer? = 1 strict? : boolean? = #f probe-graphics? : boolean? = #f
procedure
(with-kitty-nobuffer-echo thunk [ #:flags flags #:strict? strict? #:probe-graphics? probe-graphics?]) → any thunk : (-> any) flags : exact-nonnegative-integer? = 1 strict? : boolean? = #f probe-graphics? : boolean? = #f
procedure
(tui-init-kitty [ #:flags flags #:strict? strict? #:probe-graphics? probe-graphics?]) → void? flags : exact-nonnegative-integer? = 1 strict? : boolean? = #f probe-graphics? : boolean? = #f
procedure
(tui-init-kitty-no-buffer [ #:flags flags #:strict? strict? #:probe-graphics? probe-graphics?]) → void? flags : exact-nonnegative-integer? = 1 strict? : boolean? = #f probe-graphics? : boolean? = #f
procedure
(tui-init-kitty-no-buffer-echo [ #:flags flags #:strict? strict? #:probe-graphics? probe-graphics?]) → void? flags : exact-nonnegative-integer? = 1 strict? : boolean? = #f probe-graphics? : boolean? = #f
procedure
(tui-exit-kitty) → void?
#:flags defaults to 1 (disambiguate) and must be in 0 to kitty-keyboard-flags-max; use 3 for press/repeat/release.
#:strict? defaults to #f: if the terminal does not answer the kitty keyboard probe, print a warning and fall back to ANSI. With #t, raise an error instead.
#:probe-graphics? defaults to #f. Enabling it sends the graphics and Unicode-placeholder APC queries.
procedure
(enable-kitty-keyboard! [#:flags flags]) → void?
flags : exact-nonnegative-integer? = 1
procedure
(disable-kitty-keyboard!) → void?
procedure
(with-synchronized-output thunk) → any
thunk : (-> any)
procedure
(format-kitty-keyboard-enable flags) → bytes?
flags : exact-nonnegative-integer?
value
format-kitty-keyboard-disable : bytes?
value
format-kitty-keyboard-query : bytes?
value
kitty-keyboard-flags-max : exact-positive-integer?