GithubHelp home page GithubHelp logo

cecho's Introduction

cecho

Description

Just like echo but colourful, formatted and stylish.

Look at this

Requirements

It should run on any Unix OS. If you notice any problems let me know.

Usage

cecho [OPTIONS] [string ...]"

Options

Option Function
-n Do not output the trailing newline.
--centre Centre the text in the terminal.
--right Align the text to the right side of terminal.
--doublespace Add spaces between each of the letters
--margin Set the width of the left and right margins.
--margin-left Set the width of the left margin.
--margin-right Set the width of the right margin.
--show-colours Show available colours.
--background Set the background colour.
--foreground Set the background colour.
--black Shorthand for setting foreground to black.
--blue Shorthand for setting foreground to blue.
--cyan Shorthand for setting foreground to cyan.
--dark-blue Shorthand for setting foreground to dark-blue.
--dark-gray Shorthand for setting foreground to dark-gray.
--dark-green Shorthand for setting foreground to dark-green.
--dark-grey Shorthand for setting foreground to dark-grey.
--green Shorthand for setting foreground to green.
--grey Shorthand for setting foreground to grey.
--light-blue Shorthand for setting foreground to light-blue.
--light-cyan Shorthand for setting foreground to light-cyan.
--light-green Shorthand for setting foreground to light-green.
--light-grey Shorthand for setting foreground to light-grey.
--light-magenta Shorthand for setting foreground to light-magenta.
--light-red Shorthand for setting foreground to light-red.
--light-yellow Shorthand for setting foreground to light-yellow.
--magenta Shorthand for setting foreground to magenta.
--pink Shorthand for setting foreground to pink.
--red Shorthand for setting foreground to red.
--white Shorthand for setting foreground to white.
--yellow Shorthand for setting foreground to yellow.
--help This help.

Examples

Show available colours:
cecho --show-colours

Set foreground to red:
cecho --red "string to echo"

Set background to blue and foreground to white:
cecho --background=blue --foreground=white "string to echo"

Set the background to a specific colour:
cecho --background=170 "string to echo"

Set foreground to red and center in terminal. cecho --centre --red "string to echo"

Set foreground to green and background to gray for part of a line cecho --inline "{F_green}{B_grey}string to{reset} echo"

cecho's People

Contributors

jonhiggs avatar snoringfrog avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cecho's Issues

Migrate to Github Actions

Travis has turned hostile to FOSS projects. Github Actions now exists, so it would be good to migrate.

License

The code in this repository appears to be lacking a license. It would be great if this situation could be resolved.

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.