Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kilo Text Editor

Kilo is a simple text editor written in C, inspired by kilo. This project demonstrates basic terminal manipulation and text editing capabilities.

Features

  • Basic text editing in the terminal
  • Cursor movement using arrow keys
  • Screen refresh and drawing
  • Raw mode for terminal input

Requirements

  • GCC (GNU Compiler Collection)
  • Make

Build and Run

Build

To compile the project, use the following command:

make

Run

After building the project, you can run the text editor using:

make run

Alternatively, you can run the executable directly:

./kilo

Clean

To remove the compiled files, use:

make clean

Files

  • main.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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

This project is heavily inspired by kilo by Salvatore Sanfilippo (antirez).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages