Table of Contents
TerControl is a lightweight opinion based terminal control library for C/C++. TerControl gives the end-user all the tools needed to manipulate the terminal (Look at features for a full list of features).
TerControl was created to suit my needs for terminal control without having to rely on Curses or NCurses, thus TerControl is heavily influenced by my needs. I'm very open to ideas and suggestions so if you have an idea open an issue with a feature request! Currently, TerControl is compatible with Windows and UNIX/POSIX based systems.
- No dependencies (other then C's standard library)
- Cursor
- Move the cursor N times (up, down, left, right)
- Set/get the cursor position
- Hide/show the cursor
- Styled output
- Foreground color (16 base colors)
- Background color (16 base colors)
- 256 (ANSI) color support
- RGB color support (Linux)
- Text attributes (bold, dim, italic, underscore, crossed, reversed, blink, invisible)
- Terminal
- Clear (all lines, current line, from cursor down and up, clear partial)
- Get the terminal size
- Alternate screen
- Exit alternate screen
- Event
- Input Events
This may be changed in the future! For now please:
- install the header file
- place it into your project directory
- include it like so
#include "tercontrol.h"
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
All code is distributed under the GNU GPLv3 licence
Contact me via email or discord
- zackery.smith82307@gmail.com
- Dumb Bird#8147
- anic17 | Great help to the devlopment of TerControl, motivating me to constantaly work on this project!
I would also like to thank the entirety of the Program Dream discord server for being a great place! Personally being active there gave me a new thing to do, I bet I'll be active on there a lot more so join! It's a non-toxic programming community and it's just a great place to be!