Kilo is a simple text editor written in C, inspired by kilo. This project demonstrates basic terminal manipulation and text editing capabilities.
- Basic text editing in the terminal
- Cursor movement using arrow keys
- Screen refresh and drawing
- Raw mode for terminal input
- GCC (GNU Compiler Collection)
- Make
To compile the project, use the following command:
makeAfter building the project, you can run the text editor using:
make runAlternatively, you can run the executable directly:
./kiloTo remove the compiled files, use:
make cleanmain.c: Entry point of the application, initializes the editor and handles the main loop.terminal.c: Functions related to terminal manipulation, including enabling/disabling raw mode.editor.c: Core editor functions, including screen drawing and cursor movement.input.c: Functions for handling user input.output.c: Functions for rendering the editor screen.constants.h: Header file containing constants and macros used throughout the project.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is heavily inspired by kilo by Salvatore Sanfilippo (antirez).