Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jadogg/wkilo

Port of kilo๐Ÿ‹๏ธ text editor to Windows ๐ŸชŸ
https://github.com/jadogg/wkilo

kilo port terminal text-editor windows-10

Last synced: 5 days ago
JSON representation

Port of kilo๐Ÿ‹๏ธ text editor to Windows ๐ŸชŸ

Awesome Lists containing this project

README

        

# ๐ŸชŸ๐ŸชŸ WKilo ๐ŸชŸ๐ŸชŸ

![](https://github.com/JaDogg/WKilo/blob/main/wkilo.gif)

- ๐ŸชŸ Windows Port of kilo text editor [tutorial source](https://github.com/snaptoken/kilo-src)
- Original tutorial can be found [here](https://viewsourcecode.org/snaptoken/kilo/index.html)
- Which is based on [antirezโ€™s kilo](https://github.com/antirez/kilo)

## ๐Ÿค” What was changed
- As per [this issue](https://github.com/microsoft/terminal/issues/8820) use `ReadConsoleA` for reading characters.
- Naturally I implemented `write` using `WriteConsoleA` also
- Since we do not have the `getline()` method (because it's only in POSIX) I lazily stole it from [here](https://stackoverflow.com/a/47229318/1355145)
- We can get the console `cols, rows` as explained [here](https://stackoverflow.com/a/12642749/1355145).
- Changed the behaviour of `void editorSave()` to simply write the file using a different implementation of write file.