3 ms·
Kilo is a great way to learn how to manipulate the terminal directly (rather than using a wrapper library like ncurses): https://github.com/antirez/kilo https:/
by _sdegutis 9y ago
Kilo is a great way to learn how to manipulate the terminal directly (rather than using a wrapper library like ncurses): https://github.com/antirez/kilo https://github.com/antirez/kilo (A text editor in less than 1000 LOC with syntax highlight and search.)
- stevekemp 9y agoThere are many forks of this, which I think is a testament to how simple, clean, and easy to modify this code was. The initial blog-post which announced the editor is worth a read, as is the discussion here: http://antirez.com/news/108 http://antirez.com/news/108 https://news.ycombinator.com/item?id=12065217 https://news.ycombinator.com/item?id=12065217 My own version adds Lua support, multiple buffers, and similar features. It is by no means the best of the editors but I had fun playing with it - to the extent I was almost tempted to write an editor. (But then I realized I already have vim for writing email, and emacs for everything else. The world really doesn't need another editor!) https://github.com/skx/kilua/ https://github.com/skx/kilua/