Code Monkey home page Code Monkey logo

cprint's Introduction

Cool Print (cprint)

Command line tool and function written in bash to print colorful text and styles.

Requirements

  • Linux or Mac operating system
  • Optional: printf binary in path.
  • Optional: figlet binary in path.
  • Optional: cowsay binary in path.

Options

	Usage for cprint:

	[-h|--help]: Display this dialog
	--debug: Enable debugging.
	--selftests: Run selftests.
	--export filename: Export portable cprint bash function to specified file.

	[-e|--stderr]: Send output to stderr instead of stdout (default)
	[-n|--no-newline]: Do not print newline.
	[-p|--pre-newline]: Prepend newline.
	[-I|-b|--bold]: Enable bold colors.
	[-A|--cowsay]: Output with cowsay.
	[-F|--figlet]: Output with figlet.
	--cow-file file: Set the cowsay style if using cowsay.
	--fig-file file: Set the figlet style if using figlet.
	[-c|--centered]: Center text.
	[--BG|--bg|--background] color-name: Set background color-name.
	[--FG|--fg|--foreground] color-name: Set foreground color-name.
	[Accepted color-names: black white red yellow green blue cyan purple random]

	�[-K|--black]: Print Black text.�
	�[-W|--white]: Print White text.�
	�[-R|--red]: Print Red text.�
	�[-Y|--yellow]: Print Yellow text.�
	�[-G|--green]: Print Green text.�
	�[-B|--blue]: Print Blue text.�
	�[-C|--cyan]: Print Cyan text.�
	�[-P|--purple]: Print Purple text.�
	[-Z|--random]: Print Random Color text.
	[-L|--log-styled] logfile: Output to specified log file with styles.
	[-l|--log] logfile: Output to specified log file without styles.
	[-S|--string] string: Set the print string.

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.