- 🪟 Windows Port of kilo text editor tutorial source
- Original tutorial can be found here
- Which is based on antirez’s kilo
- As per this issue use
ReadConsoleA
for reading characters.- Naturally I implemented
write
usingWriteConsoleA
also
- Naturally I implemented
- Since we do not have the
getline()
method (because it's only in POSIX) I lazily stole it from here - We can get the console
cols, rows
as explained here. - Changed the behaviour of
void editorSave()
to simply write the file using a different implementation of write file.