All Projects → issue9 → term

issue9 / term

Licence: MIT license
终端输出控制

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to term

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 (+1081.58%)
Mutual labels:  console, ansi-colors
Video To Ascii
It is a simple python package to play videos in the terminal using characters as pixels
Stars: ✭ 960 (+2426.32%)
Mutual labels:  console, ansi-colors
Mordant
Full-featured text styling for Kotlin command-line applications
Stars: ✭ 382 (+905.26%)
Mutual labels:  console, ansi-colors
TerminalConsoleAppender
JLine 3 appender for Log4j2, allows extending command line apps using colors and command completion
Stars: ✭ 49 (+28.95%)
Mutual labels:  console, ansi-colors
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (-36.84%)
Mutual labels:  console, ansi-colors
Ansi Econsole
Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
Stars: ✭ 72 (+89.47%)
Mutual labels:  console, ansi-colors
Gradle Test Logger Plugin
A Gradle plugin for printing beautiful logs on the console while running tests
Stars: ✭ 460 (+1110.53%)
Mutual labels:  console, ansi-colors
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+192.11%)
Mutual labels:  console, term
x-terminal
An xterm based Atom plugin for providing terminals inside your Atom workspace.
Stars: ✭ 34 (-10.53%)
Mutual labels:  console, term
Spectre.console
A .NET library that makes it easier to create beautiful console applications.
Stars: ✭ 4,226 (+11021.05%)
Mutual labels:  console, ansi-colors
ansicolor
A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
Stars: ✭ 91 (+139.47%)
Mutual labels:  console, ansi-colors
ansiart2utf8
Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8. Escape codes and line endings are processed for terminal friendliness.
Stars: ✭ 32 (-15.79%)
Mutual labels:  console, ansi-colors
smag
Show Me A Graph - Command Line Graphing
Stars: ✭ 78 (+105.26%)
Mutual labels:  console
contabs
Simple yet flexible tables for console apps.
Stars: ✭ 51 (+34.21%)
Mutual labels:  console
attaching jshell
Attach Java 9's JShell to already-running virtual machine
Stars: ✭ 27 (-28.95%)
Mutual labels:  console
console.history
📜 Store all javascript console logs in console.history
Stars: ✭ 30 (-21.05%)
Mutual labels:  console
kolorist
A tiny utility to colorize stdin/stdout
Stars: ✭ 160 (+321.05%)
Mutual labels:  ansi-colors
fenrir
An TTY screenreader for Linux.
Stars: ✭ 33 (-13.16%)
Mutual labels:  console
snax86
A snake game written in x86 Assembly language for windows console
Stars: ✭ 21 (-44.74%)
Mutual labels:  console
dotfiles
🔧 .files - different setups separated in branches
Stars: ✭ 168 (+342.11%)
Mutual labels:  console

term Go Go Report Card license codecov PkgGoDev Go version

term 包含了终端控制相关的包:ansi 和 colors 和 prompt。

  • ansi 定义了 ansi 转码;
  • colors 定义了控制台的彩色字符串输出功能;
  • prompt 定义了控制台的交互接口;
// 向 stderr 终端输出蓝底红字的字符串:"colors"
colors.Print(colors.Normal, colors.Stdout, colors.Red, colors.Blue, "colors")

// 输出蓝底红字的字符串
c := colors.New(os.Stdout).
	colors.Normal, colors.Red, colors.Blue).
    Println("colors")

// 输出普通文本,颜色信息会被过滤
file := os.Create("path/file")
colors.Fprint(file, colors.Normal, colors.Red, colors.Blue, "colors")

安装

go get github.com/issue9/term/v3

兼容性

colors 兼容 windows 控制台、mingw 和其它所有支持 ansi 控制符的软件

iterm2 iterm2

windows-terminal windows-terminal

版权

本项目采用 MIT 开源授权许可证,完整的授权说明可在 LICENSE 文件中找到。

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].