This project is a simple text editor that runs directly in the terminal. It allows users to open, edit, save, and manage text files without the need for a graphical interface. This project is built in C++.
- Open & Save Files: Load text files from disk, edit them, and save changes.
- Basic Editing: Insert and delete text.
- Keyboard Navigation: Navigate through lines and characters.
- Terminal-based: Fully functional within the terminal.
You will need a C++ compiler. For example, on Unix-based systems, you can install g++:
sudo apt install g++To compile the editor:
g++ main.cpp -o text_editor -lpdcursesStart the editor by running:
./text_editormain.cpp: Main program file handling user input and managing editor functionality.classes.h: Contains class definitions for text manipulation and screen rendering.functions.h: Helper functions used throughout the editor.
Once running, use keyboard shortcuts to navigate and edit text. The program is designed to work with basic text editing functionality in mind.
This project is meant for educational purposes and to demonstrate building a simple text editor in C++ for a terminal environment.