https://github.com/zackeryrsmith/tercontrol
Lightweight cross-platform terminal control library for C/C++
https://github.com/zackeryrsmith/tercontrol
linux posix posix-systems terminal unix windows
Last synced: about 2 months ago
JSON representation
Lightweight cross-platform terminal control library for C/C++
- Host: GitHub
- URL: https://github.com/zackeryrsmith/tercontrol
- Owner: ZackeryRSmith
- License: gpl-3.0
- Created: 2022-03-25T10:18:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T14:17:22.000Z (over 2 years ago)
- Last Synced: 2025-02-28T17:47:00.009Z (2 months ago)
- Topics: linux, posix, posix-systems, terminal, unix, windows
- Language: C
- Homepage:
- Size: 10.6 MB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TerControl
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](#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## Installation
**This may be changed in the future!**
For now please:
1. install the [header file](https://github.com/ZackeryRSmith/tercontrol/blob/main/tercontrol.h)
2. place it into your project directory
3. include it like so `#include "tercontrol.h"`## Contributing
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!1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## Licence
All code is distributed under the [GNU GPLv3 licence](https://github.com/ZackeryRSmith/tercontrol/blob/main/LICENSE)## Contact
Contact me via email or discord
- [email protected]
- Dumb Bird#8147I would also like to thank the entirety of the [Program Dream](https://discord.gg/gfmaxgE) 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!