Attempt at a Rust implementation of the Kilo text editor tutorial:
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Timothy Warren cac43aeba9 Do not hide cursor on refresh, at least for now 1 day ago
src Do not hide cursor on refresh, at least for now 1 day ago
.gitignore Ugly progress commit 3 weeks ago
Cargo.lock Update version 2 days ago
Cargo.toml Update version 2 days ago Ugly progress commit 1 week ago

Oxidized Kilo

An experimental reimplementation of the Kilo tutorial with a Rust implementation.

Implementation notes:

  • The editor prefix has been removed from all the editor methods. Since this implementation uses impls on a shared Editor struct, the prefix is redundant
  • Any C equivalent functionality based on memory allocating/deallocating, or other manual book-keeping is instead implemented in a more idiomatic Rust fashion.
  • Row structs are referenced by their index in the Editor struct, rather than as a direct reference in method calls. This generally simplifies dealing with the rules of Rust (borrow checker).

Known issues:

  • The cursor is invisible :(