Handbook
Glossary
editor-caret ( editor -- loc )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Editor gadgets
»
The caret and mark
Next:
editor-mark ( editor -- loc )
Vocabulary
ui
.
gadgets
.
editors
Inputs
editor
an
editor
Outputs
loc
a pair of integers
Word description
Outputs the current caret location as a line/column number pair.
See also
editor-mark
Definition
USING:
accessors
;
IN:
ui.gadgets.editors
:
editor-caret
( editor -- loc )
caret>>
value>>
;