improve documentation for edit.draw
[?]
Jun 8, 2023, 5:10 AM
2TFAEKOCZGJIVR7QLPUMBNLKJ4RJF4PVOTODRRZEWC6SE3L7H4HACDependencies
- [2]
4LW3LB4JMerge text0 - [3]
JNAQUQKBMerge lines.love - [4]
H5UZI3YNeditor documentation - [5]
Y3ZR4TOKMerge lines.love - [6]
B4H3KLKRMerge text0 - [7]
3HHPHDOOcouple of typos - [*]
N2NUGNN4include a brief reference enabling many useful apps
Change contents
- replacement in reference.md at line 218
* `edit.draw(state)` -- call this from `on.draw` to display the current editorstate on the app window as requested in the call to `edit.initialize_state`that created `state`.* `edit.draw(state, fg, hide_cursor)` -- call this from `on.draw` to displaythe current editor state on the app window as requested in the call to`edit.initialize_state` that created `state`. `fg` is the color forforeground text (`Text_color` is a good default). Set `hide_cursor` to stopshowing a blinking cursor (usually because you want a `readonly` editor; seebelow).