Skip to main content

Currently testing the PYPI package. Description will be updated later!

Project description

TerControl

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

TerControl is a lightweight opinion based POSIX terminal control library for python3. 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 wrappings, 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!

Features

  • No dependencies (other then python'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
    • 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
    • Save/restore screen
    • Alternate screen
    • Exit alternate screen
  • Event
    • Input Events

Installation

As of right now I don't plan on making this a PYPI package unless this actully gains any attraction. If you would like to use TerControl:

  1. download one of the builds from the releases
  2. Place the compiled binary into your projects directory
  3. import tercontrol I.e. from tercontrol import *

Build

I am currently working on optimising TerControl. I have switched to using a cython module to speed up code. If the compiled binary I supplied in the releases does not work please compile your own.

  1. Enter TerControl's directory
  2. Run python setup.py build_ext --inplace
  3. Your compiled binary should be in the same directory
  4. Place the compiled binary into your project
  5. import it E.g. from tercontrol import *

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

I would 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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tercontrol-0.0.1.tar.gz (147.7 kB view hashes)

Uploaded Source

Built Distribution

tercontrol-0.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (726.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page