editor - common library for text editors to use
editor, inspired by and similar in form and function to the PsychOS library ed, is a common library for use by text editors. It facilitates the creation, storage, removal, saving, and displaying of text buffers.
The base buffer object.
All opened buffers.
Returns the size of the screen the editor is running on.
Creates a new buffer and returns its index in ed.buffers.
BUFFER OBJECT METHODS
buffer:load(file:string): boolean or nil, string
Loads file file into the buffer.
buffer:save([file:string]): boolean or nil, string
Saves the buffer to file. If the buffer name is "" or nil, file is a required argument. Otherwise, file is optional.
Draw the buffer to the screen.
BUFFER OBJECT FIELDS
The buffer name.
Sub-elements w and h, both numbers, specify vertical and horizontal scroll.
Optional. Specifies a syntax highlighter to use when drawing the buffer.
Monolith Libraries and Utilities (c) 2020 Ocawesome101 under the GNU GPLv3.
vled(1), fled(1), led(1), ed(1)