git404hub

what is kilo fr?

antirez/kilo — explained in plain English

Analysis updated 2026-06-24

8,902CAudience · developerComplexity · 2/5LicenseSetup · easy

tl;dr

A minimal terminal text editor written in fewer than 1,000 lines of C with no external library dependencies, designed as a readable starting point for building your own command-line editor.

vibe map

mindmap
  root((Kilo))
    What it does
      Terminal text editor
      Under 1000 lines
      No dependencies
    Features
      Syntax highlighting
      Text search
      Basic editing
    For learning
      Read and modify
      Terminal sequences
      C programming
    License
      BSD 2 Clause

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Use Kilo as a starting point to build your own terminal text editor by reading and modifying its short, well-structured C source code.

VIBE 2

Learn how terminal control sequences work and how editors handle raw input without relying on any external libraries.

what's the stack?

C

how it stacks up fr

antirez/kilononstriater/learn-algorithmsunicorn-engine/unicorn
Stars8,9028,9368,954
LanguageCCC
Setup difficultyeasyeasymoderate
Complexity2/52/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min
Free to use and modify under the BSD 2-Clause license, including in commercial projects.

in plain english

Kilo is a minimal text editor written in the C programming language, fitting entirely within fewer than 1,000 lines of code. It runs in a terminal window and supports basic editing operations, syntax highlighting, and text search. The keyboard shortcuts are simple: Ctrl-S to save, Ctrl-Q to quit, and Ctrl-F to search for a string within the file. One notable aspect of Kilo is that it does not rely on any external libraries, including common terminal libraries that most similar tools use. Instead it works by sending low-level terminal control sequences directly, which keeps the code small and portable. The author describes the project as being in an alpha (early, unfinished) state and notes it was written in just a few hours, drawing from two of his earlier projects. The primary audience is developers who want a readable starting point for building their own terminal text editor or a similar command-line interface. The codebase is intentionally minimal so it is easy to read, understand, and modify. The project was created by Salvatore Sanfilippo, known online as antirez, who is also the creator of Redis. It is released under the BSD 2-Clause license, which permits free use and modification. The README is brief and the project scope is narrow by design.

prompts (copy fr)

prompt 1
Walk me through how Kilo switches the terminal into raw mode in C, which part of the kilo.c source handles that and why is it necessary?
prompt 2
I want to add line number display to the Kilo editor, help me modify the rendering code to show them on the left side.
prompt 3
Explain how Kilo implements syntax highlighting using its own source as the example, step by step.

Frequently asked questions

what is kilo fr?

A minimal terminal text editor written in fewer than 1,000 lines of C with no external library dependencies, designed as a readable starting point for building your own command-line editor.

What language is kilo written in?

Mainly C. The stack also includes C.

What license does kilo use?

Free to use and modify under the BSD 2-Clause license, including in commercial projects.

How hard is kilo to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is kilo for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.