All Projects β†’ shiena β†’ Ansicolor

shiena / Ansicolor

Licence: mit
Ansicolor library provides color console in Windows as ANSICON for Golang.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Ansicolor

Paint
Ruby gem for ANSI terminal colors 🎨︎ VERY FAST
Stars: ✭ 317 (+60.91%)
Mutual labels:  ansi-colors
Pretty
Library for helping print things prettily, in Clojure - ANSI fonts, formatted exceptions
Stars: ✭ 474 (+140.61%)
Mutual labels:  ansi-colors
Aurora
Golang ultimate ANSI-colors that supports Printf/Sprintf methods
Stars: ✭ 1,061 (+438.58%)
Mutual labels:  ansi-colors
Mordant
Full-featured text styling for Kotlin command-line applications
Stars: ✭ 382 (+93.91%)
Mutual labels:  ansi-colors
2048.c
Console version of the game "2048" for GNU/Linux
Stars: ✭ 453 (+129.95%)
Mutual labels:  ansi-colors
Terminalimageviewer
Small C++ program to display images in a (modern) terminal using RGBΒ ANSI codes and unicode block graphics characters
Stars: ✭ 917 (+365.48%)
Mutual labels:  ansi-colors
Picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
Stars: ✭ 3,286 (+1568.02%)
Mutual labels:  ansi-colors
Ololog
A better console.log for the log-driven debugging junkies
Stars: ✭ 141 (-28.43%)
Mutual labels:  ansi-colors
Gradle Test Logger Plugin
A Gradle plugin for printing beautiful logs on the console while running tests
Stars: ✭ 460 (+133.5%)
Mutual labels:  ansi-colors
Ansi Escape Sequences
A simple, isomorphic library containing all known terminal ansi escape codes and sequences.
Stars: ✭ 44 (-77.66%)
Mutual labels:  ansi-colors
Python Coloredlogs
Colored terminal output for Python's logging module
Stars: ✭ 408 (+107.11%)
Mutual labels:  ansi-colors
Pterm
✨ #PTerm is a modern go module to beautify console output. Featuring charts, progressbars, tables, trees, and many more πŸš€ It's completely configurable and 100% cross-platform compatible.
Stars: ✭ 449 (+127.92%)
Mutual labels:  ansi-colors
Cl Ansi Text
Enables ANSI colors for printing.
Stars: ✭ 30 (-84.77%)
Mutual labels:  ansi-colors
Ansi
Small, fast library to create ANSI colored strings and codes. [go, golang]
Stars: ✭ 323 (+63.96%)
Mutual labels:  ansi-colors
Clc
Tiny bash utility for coloring terminal output and prompt
Stars: ✭ 58 (-70.56%)
Mutual labels:  ansi-colors
Ansi Colors
Easily add ANSI colors to your text and symbols in the terminal. ansi-colors is the official ansi styling library for gulp, and is used by hundreds of other projects, including mocha and enquirer.
Stars: ✭ 300 (+52.28%)
Mutual labels:  ansi-colors
Rich
Rich is a Python library for rich text and beautiful formatting in the terminal.
Stars: ✭ 31,664 (+15973.1%)
Mutual labels:  ansi-colors
Ls Go
A more colorful, user-friendly implementation of `ls` written in Go
Stars: ✭ 162 (-17.77%)
Mutual labels:  ansi-colors
Ansi Econsole
Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
Stars: ✭ 72 (-63.45%)
Mutual labels:  ansi-colors
Video To Ascii
It is a simple python package to play videos in the terminal using characters as pixels
Stars: ✭ 960 (+387.31%)
Mutual labels:  ansi-colors

PkgGoDev Go Report Card

ansicolor

Ansicolor library provides color console in Windows as ANSICON for Golang.

Features

Escape sequence Text attributes
\x1b[0m All attributes off(color at startup)
\x1b[1m Bold on(enable foreground intensity)
\x1b[4m Underline on
\x1b[5m Blink on(enable background intensity)
\x1b[21m Bold off(disable foreground intensity)
\x1b[24m Underline off
\x1b[25m Blink off(disable background intensity)
Escape sequence Foreground colors
\x1b[30m Black
\x1b[31m Red
\x1b[32m Green
\x1b[33m Yellow
\x1b[34m Blue
\x1b[35m Magenta
\x1b[36m Cyan
\x1b[37m White
\x1b[39m Default(foreground color at startup)
\x1b[90m Light Gray
\x1b[91m Light Red
\x1b[92m Light Green
\x1b[93m Light Yellow
\x1b[94m Light Blue
\x1b[95m Light Magenta
\x1b[96m Light Cyan
\x1b[97m Light White
Escape sequence Background colors
\x1b[40m Black
\x1b[41m Red
\x1b[42m Green
\x1b[43m Yellow
\x1b[44m Blue
\x1b[45m Magenta
\x1b[46m Cyan
\x1b[47m White
\x1b[49m Default(background color at startup)
\x1b[100m Light Gray
\x1b[101m Light Red
\x1b[102m Light Green
\x1b[103m Light Yellow
\x1b[104m Light Blue
\x1b[105m Light Magenta
\x1b[106m Light Cyan
\x1b[107m Light White

Example

package main

import (
	"fmt"
	"os"

	"github.com/shiena/ansicolor"
)

func main() {
	w := ansicolor.NewAnsiColorWriter(os.Stdout)
	text := "%sforeground %sbold%s %sbackground%s\n"
	fmt.Fprintf(w, text, "\x1b[31m", "\x1b[1m", "\x1b[21m", "\x1b[41;32m", "\x1b[0m")
	fmt.Fprintf(w, text, "\x1b[32m", "\x1b[1m", "\x1b[21m", "\x1b[42;31m", "\x1b[0m")
	fmt.Fprintf(w, text, "\x1b[33m", "\x1b[1m", "\x1b[21m", "\x1b[43;34m", "\x1b[0m")
	fmt.Fprintf(w, text, "\x1b[34m", "\x1b[1m", "\x1b[21m", "\x1b[44;33m", "\x1b[0m")
	fmt.Fprintf(w, text, "\x1b[35m", "\x1b[1m", "\x1b[21m", "\x1b[45;36m", "\x1b[0m")
	fmt.Fprintf(w, text, "\x1b[36m", "\x1b[1m", "\x1b[21m", "\x1b[46;35m", "\x1b[0m")
	fmt.Fprintf(w, text, "\x1b[37m", "\x1b[1m", "\x1b[21m", "\x1b[47;30m", "\x1b[0m")
}

screenshot

See also:

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
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].