Skip to content

Lightweight cross-platform terminal control library for C/C++

License

Notifications You must be signed in to change notification settings

ZackeryRSmith/tercontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TerControl

Table of Contents
  1. About TerControl
  2. Features
  3. Installation
  4. Contributing
  5. License
  6. Contact
  7. Thanks

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.

Features

  • 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
  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

Contact

Contact me via email or discord

Thanks

  • 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!