All Projects → betafcc → Clc

betafcc / Clc

Licence: mit
Tiny bash utility for coloring terminal output and prompt

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Clc

Ololog
A better console.log for the log-driven debugging junkies
Stars: ✭ 141 (+143.1%)
Mutual labels:  tty, ansi-colors
kolorist
A tiny utility to colorize stdin/stdout
Stars: ✭ 160 (+175.86%)
Mutual labels:  tiny, ansi-colors
Tty Prompt
A beautiful and powerful interactive command line prompt
Stars: ✭ 1,210 (+1986.21%)
Mutual labels:  prompt, tty
enquirer
Stylish, intuitive and user-friendly prompts, for Node.js. Used by eslint, webpack, yarn, pm2, pnpm, RedwoodJS, FactorJS, salesforce, Cypress, Google Lighthouse, Generate, tencent cloudbase, lint-staged, gluegun, hygen, hardhat, AWS Amplify, GitHub Actions Toolkit, @airbnb/nimbus, and many others! Please follow Enquirer's author: https://github.…
Stars: ✭ 6,523 (+11146.55%)
Mutual labels:  prompt, tty
ansicolor
A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
Stars: ✭ 91 (+56.9%)
Mutual labels:  tty, ansi-colors
Readline Sync
Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).
Stars: ✭ 601 (+936.21%)
Mutual labels:  prompt, tty
Next Translate
Next.js plugin + i18n API for Next.js 10 🌍 - Load page translations and use them in an easy way!
Stars: ✭ 867 (+1394.83%)
Mutual labels:  tiny
Tty Pager
Terminal output paging - cross-platform, major ruby interpreters
Stars: ✭ 37 (-36.21%)
Mutual labels:  tty
Node Format Microformat
Formats a Microformat JSON representation into eg. a Jekyll post
Stars: ✭ 11 (-81.03%)
Mutual labels:  formatting
Librini
Rini is a tiny, non-libc dependant, .ini file parser programmed from scratch in C99.
Stars: ✭ 25 (-56.9%)
Mutual labels:  tiny
Termly.js
Simple, Extensible, Hackable and Lightweight Javascript Browser Terminal Simulator!
Stars: ✭ 56 (-3.45%)
Mutual labels:  prompt
Tty Font
Terminal fonts
Stars: ✭ 44 (-24.14%)
Mutual labels:  tty
Video To Ascii
It is a simple python package to play videos in the terminal using characters as pixels
Stars: ✭ 960 (+1555.17%)
Mutual labels:  ansi-colors
Oh My Posh
A prompt theme engine for any shell.
Stars: ✭ 841 (+1350%)
Mutual labels:  prompt
Jquery Alertable
Minimal alert and confirmation alternatives.
Stars: ✭ 38 (-34.48%)
Mutual labels:  prompt
Tty Which
Cross-platform implementation of Unix `which` command
Stars: ✭ 11 (-81.03%)
Mutual labels:  tty
Ansi Escape Sequences
A simple, isomorphic library containing all known terminal ansi escape codes and sequences.
Stars: ✭ 44 (-24.14%)
Mutual labels:  ansi-colors
Prompt Password
This repository has been archived, use the built-in password prompt in Enquirer instead.
Stars: ✭ 8 (-86.21%)
Mutual labels:  prompt
React Colorful
🎨 A tiny (2,5 KB) color picker component for React and Preact apps
Stars: ✭ 951 (+1539.66%)
Mutual labels:  tiny
Pretty Git Prompt
`git status` inside your shell prompt
Stars: ✭ 43 (-25.86%)
Mutual labels:  prompt

clc

Tiny bash utility for coloring terminal output and prompt

The motivating use case was easily stacking styles, which is not possible to do with other tools like node's chalk:

Useful for templating colorful prompts (use -e|--escape for this):

PS1=$(clc -e '<bold:<red:[<yellow:\\u><green:@><blue:\\h><magenta:\\W>]>$ >')

Try it

bash <(curl -s https://raw.githubusercontent.com/betafcc/clc/master/clc) '<red:hello <reverse:world>'

Install

curl -s https://raw.githubusercontent.com/betafcc/clc/master/clc | sudo tee /usr/local/bin/clc > /dev/null && sudo chmod +x /usr/local/bin/clc

Then use:

clc '<red:hello <reverse:world>'

More

Use foreground colors:

clc '<red:hello>'
clc '<green:hello <blue: world>>'
clc '<rgb 255 120 120: hello>'

Use background colors:

clc '<bg red:hello>'
clc '<bg green:hello <bg blue: world>>'
clc '<bg rgb 255 120 120: hello>'

Use effects:

clc '<bold:hello>'
clc '<bold:hello <underline: world>>'

Combine commands:

clc '<red + bg blue + underline + bold:hello>'

Available Colors:

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • rgb <0-255> <0-255> <0-255>

Available effects:

  • normal
  • bold
  • dim
  • strike
  • italic
  • underline
  • reverse
  • invisible
  • blink

Version:

clc -v
clc --version
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].