membrane.lanterna
-label
(-label text)Graphical elem that can draw text.
label will use the default line spacing for newline.
button
(button text)(button text on-click)(button text on-click hover?)Graphical elem that draws a button. Optional on-click function may be provided that is called with no arguments when button has a mouse-down event.
effect-finish-drag
(effect-finish-drag dispatch! $select-cursor $cursor $down-pos pos text)effect-text-double-click
(effect-text-double-click dispatch! $last-click $select-cursor $cursor pos text)run-sync
(run-sync view-fn)(run-sync view-fn {:keys [handler repaint-ch close-ch in out], :as options})text-selection
(text-selection text [selection-start selection-end :as selection])Graphical elem for drawing a selection of text.
textarea-view
(textarea-view {:keys [cursor focus? text down-pos mpos select-cursor last-click extra context], :or {cursor 0, text ""}})Raw component for a basic textarea. textarea should be preferred.