Build a Terminal Text Editor in C++
Write a working text editor that runs in your terminal — raw input, scrolling, search, syntax colours and saving.
- Intermediate
- 28 lessons · 4h 44m of video
- English
- Updated Oct 2026
The route
Curriculum
6 modules · 28 lessons · 4h 44m of video
-
1
48m
Raw mode and keys
5 lessons
-
2
52m
Drawing the screen
5 lessons
-
3
1h 1m
The text buffer
6 lessons
-
4
49m
Editing and saving
5 lessons
-
5
31m
Search
3 lessons
-
6
43m
Syntax highlighting
4 lessons
Destination
What you will be able to do
- Switch the terminal into raw mode and read keys
- Draw the screen with ANSI escape sequences
- Store text in a gap buffer
- Add scrolling, search and syntax colours
- Save files safely with atomic writes
Before you buy
You will need
- Comfortable with C++ functions, classes and vectors
- Linux or macOS (Windows via WSL)
About this course
The journey
A text editor is the perfect intermediate project: it touches input handling, memory, data structures and performance, and you use the result every day. You will build one from an empty file, roughly a thousand lines of modern C++, with no libraries beyond the standard library and the terminal itself.
Along the way you learn raw terminal mode, escape sequences, a gap-buffer text model, viewport scrolling, incremental search, a small syntax highlighter and safe saving. Each lesson ends with the editor running, so you always have something that works.
How this course is made
This course was created by KOODIJAAM OÜ using AI tools: the lessons, exercises and example code are AI-generated, and the preview video is generated automatically from the course code.
You can watch the preview and read the full lesson list on this page before you buy. If you find a mistake, tell us — we fix it, and the fix reaches everyone who owns the course.
Information desk
Frequently asked questions
Still unsure about something? Write to support@koodijaam.com and a human answers, usually the same working day.
What students say
No reviews yet
Nobody has reviewed this course yet, so there is no score to show. Buy it, work through it, and your review could be the one that helps the next developer decide.
Roblox, Luau, SAS, Microsoft, .NET, Blazor, Avalonia, Neovim, NGINX, OpenResty, LÖVE, PyTorch, NumPy and other product names are trademarks of their respective owners. Koodijaam is an independent course provider and is not affiliated with or endorsed by them.
One-time payment · no expiry