Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ๐ช
- Host: GitHub
- URL: https://github.com/jadogg/wkilo
- Owner: JaDogg
- License: bsd-2-clause
- Created: 2022-06-26T23:19:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T23:21:27.000Z (over 2 years ago)
- Last Synced: 2024-10-30T07:05:48.434Z (about 2 months ago)
- Topics: kilo, port, terminal, text-editor, windows-10
- Language: C
- Homepage:
- Size: 1.82 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.