Git Product home page Git Product logo

pterm / pterm Goto Github PK

View Code? Open in Web Editor NEW
4.5K 24.0 182.0 21.69 MB

โœจ #PTerm is a modern Go module to easily beautify console output. Featuring charts, progressbars, tables, trees, text input, select menus and much more ๐Ÿš€ It's completely configurable and 100% cross-platform compatible.

Home Page: https://pterm.sh

License: MIT License

Go 100.00%
go golang golang-library pretty-print pretty progressbar pterm beautify tui ansi-colors

pterm's People

Contributors

0del avatar adombeck avatar alirezaarzehgar avatar anxp avatar auntan avatar avissian avatar dedefer avatar dependabot[bot] avatar floaust avatar jochil avatar jrschumacher avatar karoloslykos avatar kbdharun avatar kinoute avatar lammel avatar luisdavim avatar m1ome avatar marvinjwendt avatar mponton avatar nishant-giri avatar nivbend avatar opsnull avatar orobardet-orange avatar owen000 avatar rafaelrubbioli avatar rizalgowandy avatar suramrit avatar tobiaszcudnik avatar tylergillson avatar victorassunc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pterm's Issues

100% Test Coverage

Every function exported by PTerm should be tested.

Check test coverage with go test -cover .

Redo examples

Make examples look better and refactor them + docs.

Add `HEX` type

  • Add a type to print with HEX formatted colors.
  • Add functions to between RGB and HEX.

Make examples restart faster

Currently, the examples need some time to restart. It would be more convenient if they would restart without showing a blank screen between.

This change affects the CI System in ./ci.

New icon for PTerm

Make new icon before v1.0.0 is released. Icon will be used by the organization profile and in the README.md.

Icon must be released under CC0 or similar.

Progressbar `PrintAbove`

Add PrintAbove to Progressbar to print a line above the progressbar.
Possibly autodetect running progressbars while using pterm.Print and automaitcally use PrintAbove

Add colorfade method

Add a method to fade colors from one color to another.
Should return RGB format.

Improve performance

Check if performance can be improved.
PTerm is fast, but it can be faster ๐Ÿ˜‰

Add features to readme (automatically)

Can be done using ./_examples. Each dir which does not contain a - will be excluded and so leave only the basic features of PTerm. Demo must also be excluded.

Add `CenterPrinter`

CenterPrinter should print centered text. Renderable printer. Custom screen size.

Option to disable all output

Option to disable all output.

pterm.DisableOutput = true

๐Ÿ” this should disable all Print functions, so that PTerm does not print anything.
Can be used to run CLI tools in quiet or silent mode.

Add features to readme

Add a list of features to readme. List items should be linked to an example in the readme.

Add `ListPrinter`

ListPrinter should implement TextPrinter. Should be able to print leveled lists.

Example:

- Level one
  - Level two
- This is an example
  - level 2
    - level 3

should print:

  • Level one
    • Level two
  • This is an example
    • level 2
      • level 3

Add `DisableOutput()` and `EnableOutput()`

Add DisableOutput() and EnableOutput(). Those functions should set DisableOutput accordingly.
Also, tests should be added, to check if disabled output does not print anything.
Note: There are methods in ./internal/test_utils.go which can check the output of code.

Change `WithXXX(b bool)` to `WithXXX(b ...bool)`

Change WithXXX(b bool) to WithXXX(b ...bool). If no boolean is set, it will set the boolean to true.
Makes it easier to understand, as for example WithFatal() would be enough to enable the fatal mode. WithFatal(false) would explicitly set it to false.

Change SetXXX to WithXXX

Change SetXXX to WithXXX. It actually does not set something permanently, which could be misunderstood.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.