with-terminal macro was only in tangled .lisp (not .org). suspend-backend and resume-backend generics + simple-backend methods + tests were also in hand-edited .lisp only. All three added to org/backend-protocol.org with proper prose, following the literate programming discipline. Also added suspend/resume assertions to simple-backend-lifecycle test suite.
36 lines
1019 B
Common Lisp
36 lines
1019 B
Common Lisp
(defpackage :cl-tty.backend
|
|
(:use :cl)
|
|
(:export
|
|
;; Backend classes
|
|
#:backend #:simple-backend
|
|
;; Lifecycle
|
|
#:initialize-backend #:shutdown-backend
|
|
#:suspend-backend #:resume-backend
|
|
#:backend-size #:backend-write #:backend-clear
|
|
;; Drawing
|
|
#:draw-text #:draw-border #:draw-rect
|
|
#:draw-link #:draw-ellipsis
|
|
;; Cursor
|
|
#:cursor-move #:cursor-hide #:cursor-show #:cursor-style
|
|
;; Sync
|
|
#:begin-sync #:end-sync
|
|
;; Input
|
|
#:read-event #:enable-mouse #:enable-bracketed-paste
|
|
;; Queries
|
|
#:capable-p
|
|
;; Constructors
|
|
#:make-simple-backend
|
|
#:with-terminal
|
|
;; Modern backend
|
|
#:modern-backend #:make-modern-backend
|
|
;; Detection
|
|
#:detect-backend #:*detected-backend*
|
|
;; Theme color resolution (populated by theme system)
|
|
#:*theme-colors*
|
|
;; Internal (for testing)
|
|
#:sgr-fg #:sgr-bg #:sgr-attr
|
|
#:cursor-move-escape #:cursor-style-escape
|
|
#:decicm-begin #:decicm-end #:osc8-link
|
|
#:hex-to-rgb #:border-char))
|
|
(in-package :cl-tty.backend)
|