• Stars
    star
    42
  • Rank 656,625 (Top 13 %)
  • Language
    Go
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Console Text Colors - The non-invasive cross-platform terminal color library does not need to modify the Print method

ctc - Console Text Colors

Build Status Go Report Card GoDoc GitHub license gocover.io

The non-invasive cross-platform terminal color library does not need to modify the Print method

Virtual unix-like environments on Windows

Cursor related in github.com/wzshiming/cursor

Support style

  • console
    • unix-like (mac & linux)
    • windows

example

package main

import (
	"fmt"

	"github.com/wzshiming/ctc"
)

func main() {
	// No invasion
	fmt.Println(ctc.BackgroundRed|ctc.ForegroundBlue, "Hello world", ctc.Reset)
}

SGR (Select Graphic Rendition)

Value Description Behavior
0 Default Returns all attributes to the default state prior to modification
4 Underline Adds underline
7 Negative Swaps foreground and background colors
30~37 Foreground Applies non-bold/bright color to foreground
40~47 Background Applies non-bold/bright color to background
90~97 Bright Foreground Applies bold/bright color to foreground
100~107 Bright Background Applies bold/bright color to background

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

More Repositories

1

bridge

Birdge is a multi-level proxy that supports clients and servers with multiple protocols. SSHProxy/HTTPProxy/Socks4/Socks5/Shadowsocks
Go
96
star
2

pic2ascii

Converts a picture and video to ascii art
Go
91
star
3

fake-kubelet

[Moved to https://github.com/kubernetes-sigs/kwok] This is a fake kubelet. that can simulate any number of nodes and maintain pods on those nodes. It is useful for test control plane.
Go
57
star
4

gotype

Golang source code parsing, usage like reflect package
Go
53
star
5

gen

Gen generates efficient web routing source code and documentation from annotations
Go
50
star
6

socks5

Socks5/Socks5h server and client. Full TCP/Bind/UDP and IPv4/IPv6 support
Go
35
star
7

anyproxy

Proxy server supporting http/ssh/socks4/socks5/shadowsocks on port
Go
28
star
8

httpproxy

HTTP proxy handler and dialer
Go
20
star
9

openapi

OpenAPI 3 Specification for golang
Go
18
star
10

fake-k8s

[Moved to https://github.com/kubernetes-sigs/kwok] fake-k8s is a tool for running Fake Kubernetes clusters, It can be used as an alternative to Kind in some scenarios where you don’t need to actually run the Pod
Go
17
star
11

console

Web console
Go
13
star
12

jumpway

A cross-platform proxy GUI client. SSH/HttpProxy/Socks4/Socks5/Shadowsocks
Go
11
star
13

crun

Generate matching strings based on regular expressions
Go
10
star
14

gh-ci-bot

Let CI Robot automatically execute commands for your PR/issue in your Github repository, hosting on Github Action does not require your server.
Shell
10
star
15

bankcn

国内 银行支行的联行号和地区信息, 银行图标, 校验银行卡
Go
8
star
16

sysproxy

Set the proxy of the system
Go
8
star
17

xds

xDS client for istio
Go
7
star
18

shadowsocks

ShadowSocks server and client. Full TCP/UDP and IPv4/IPv6 support
Go
7
star
19

sshproxy

SSH proxy server and client
Go
6
star
20

socks4

Socks4/Socks4a server and client. Full TCP/Bind support.
Go
6
star
21

pbar

Custom console terminal progress bar
Go
4
star
22

gs

A lightweight embedded scripting language embeddable programming language built with Go.
Go
4
star
23

the-repository-has-4-stars-and-1-forks

The Repository has 4 Stars and 1 Forks
4
star
24

lrdb

A redis-protocol compatible frontend to google's leveldb
Go
4
star
25

emux

EMux(Express Multiplexing) is a simple, fast stream Multiplexer. EMux is using a custom protocol, is not compatible with any other, any similarity is purely coincidental.
Go
4
star
26

github-hosts

4
star
27

namecase

Various naming styles change.
Go
4
star
28

winseq

Windows console virtual terminal sequences
Go
3
star
29

sysnotify

system notification
Go
3
star
30

sshd

SSH Server
Go
3
star
31

inject

Is a simplified dependency injection library.
Go
3
star
32

resp

Redis server using a protocol called RESP (REdis Serialization Protocol) for golang
Go
3
star
33

easycel

Easy CEL is a wrapping of https://github.com/google/cel-go
Go
3
star
34

llrb

LLRB is a Left-Leaning Red-Black Tree Implementation in Golang Generic.
Go
3
star
35

profile_stats

Update markdown or svg dynamically
Go
3
star
36

requests

Go HTTP Requests for Humans
Go
3
star
37

pwod

Validating my experimental ideas for istio testing
Go
2
star
38

configer

Golang Configuration tool that support INI, XML, YAML, JSON, HCL, TOML, Shell Environment
Go
2
star
39

mock

Generate data according to tag
Go
2
star
40

putingh

Put file in the GH
Go
2
star
41

trie

Trie is a Compressed Prefix Tree Implementation in Golang Generic.
Go
2
star
42

gostruct

Golang structure is generated with json data
Go
2
star
43

cmux

A stream router
Go
2
star
44

gen-examples

Go
2
star
45

getch

Gets keyboard input without buffering, don't have to press enter.
Go
2
star
46

sni

SNI(Server Name Indication) sniffer for http/tls
Go
2
star
47

fork

Maximum fork limit
Go
2
star
48

permuteproxy

Permute Proxy is a permuting proxy engine that combines multiple protocols into a single proxy protocol.
Go
2
star
49

befunge

Befunge-93 interpreter written in Golang with a debugger
Go
2
star
50

dockerfiles

Shell
2
star
51

ygo_cards

Go
2
star
52

voices

Go
2
star
53

notify

On system signal callback for golang
Go
1
star
54

deepclone

deepclone
Go
1
star
55

areacn

国内 5级 行政划区数据, 省,市,区,街道,社区
Go
1
star
56

commandproxy

command proxy
Go
1
star
57

base

Go
1
star
58

hostmatcher

Host matcher similar to NO_PROXY rule
Go
1
star
59

docker-workspace

environments for vim, zsh and tmux
Dockerfile
1
star
60

tun

Go
1
star
61

jquery.html2json.js

JavaScript
1
star
62

schedialer

A dial scheduler, which will select the best dialer to dial according to the score calculated by the plugin
Go
1
star
63

my-scheduling-jobs

1
star
64

lockfile

Handle locking via pid files
Go
1
star
65

openapiui

HTML
1
star
66

tetris

The tetris implemented with golang
Go
1
star
67

ygo_core

Go
1
star
68

recorder

Record terminal stream
Go
1
star
69

cursor

Console control cursor position
Go
1
star
70

vpath

The Golang value path represents an xpath-like syntax
Go
1
star
71

rows

An rows reads the parsing library
Go
1
star
72

crawler

Go
1
star
73

wxcloudpay

wechat cloud pay (微信云支付) for Golang
Go
1
star
74

dinghook

A custom hook that can send messages to ding groups
Go
1
star
75

action-upload-release-assets

Shell
1
star
76

userscripts

My user scripts
JavaScript
1
star
77

dispatcher

dispatcher
Go
1
star