kaolinite 0.9.5

A crate to assist in the creation of TUI text editors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use kaolinite::{Document, Size};

fn main() {
    // Open document with the size of 10 characters by 10 characters
    let mut doc = Document::open(
        Size::is(10, 10),
        "demos/7.txt", 
    ).expect("File couldn't be opened");
    // Load viewport
    doc.load_to(1);
    // Find something out of buffer
    let m = doc.next_match("spine", 0);
    println!("{m:?}");
}