Giter Site home page Giter Site logo

tkaden4 / pfmt Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 22 KB

A command line utility and library for creating colorful text

License: MIT License

Makefile 15.30% C 84.70%
tui terminal terminal-colors terminal-graphics utility utilities utility-library unix linux

pfmt's Introduction

pfmt

A command line utility and library for creating pretty printing and terminal graphics.

See examples/ for examples.

Build and Install

To install both library and program

make ; make install

To install just the dynamic library

make lib ; make install-lib

To install just the program

make pfmt ; make install-exe

To build examples in examples/

make ex

CLI Usage

pfmt [-x|--xpos <xpos> -y|--ypos <ypos>] [-f|--fg <fg-color>] [-b|--bg <bg-color>] [-c|--clear] [-k|--kill-line] [strings...]

If strings... is not supplied, input will be read from stdin.

-x|--xpos -y|--ypos

The x and y position for the start of the text, starting at 0 from the top left of the screen.

-f|--fg and -b|--bg

The foreground/background color to be used, in 24-bit hexadecimal format. For example, ff0000 is red, 00ff00 is green, and 0000ff is blue.

-c|--clear

Clear the screen before printing.

-k|--kill-line

Kill the line before printing.

strings...

A list of arguments to be printed with the specified attributes.

pfmt's People

Contributors

tkaden4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.