A minimal terminal-based text editor written in C using raw mode and ANSI escape sequences.
This project is primarily a learning exercise to understand:
- Terminal raw mode (
termios) - Low-level input handling
- Cursor movement with escape codes
- Basic file I/O
- Simple editor state management
It currently supports basic typing, navigation, saving, and quitting directly inside the terminal.
2026-02-02.22-24-58.mp4
- Raw terminal input (no enter required)
- Arrow key cursor movement
- Create new files or open existing ones
- Save using Ctrl + O
- Quit using Ctrl + Q
- Simple status bar (row, column, filename, last saved time)
- Linux (or any POSIX system)
- GCC or Clang
gcc main.c -o m
./mYou can also use cli arguments to open file directly
gcc main.c -o m
./m filename.txt- Proper Cursor Movements
- 2D Buffer
- Scrolling Support
- Better Status Bar
- Basic Search