All Projects â†’ liamg â†’ Tml

liamg / Tml

Licence: unlicense
🌈💻🎨 A tiny markup language for terminal output. Makes formatting output in CLI apps easier!

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Tml

Sclack
The best CLI client for Slack, because everything is terrible!
Stars: ✭ 2,363 (+272.71%)
Mutual labels:  cli-app, cli, terminal
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+490.22%)
Mutual labels:  cli, terminal, colors
3llo
3llo - Trello interactive CLI aplication
Stars: ✭ 245 (-61.36%)
Mutual labels:  cli-app, cli, terminal
Initior
A command line application that let's you initialize your new projects the right way, replaces npm and yarn's init 🎆
Stars: ✭ 17 (-97.32%)
Mutual labels:  cli-app, cli, terminal
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (-44.79%)
Mutual labels:  cli, terminal, tui
Jsonfui
jsonfui is an interactive command-line JSON viewer.
Stars: ✭ 125 (-80.28%)
Mutual labels:  cli-app, cli, tui
Termenv
Advanced ANSI style & color support for your terminal applications
Stars: ✭ 555 (-12.46%)
Mutual labels:  terminal, tui, colors
Goaccess
GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
Stars: ✭ 14,096 (+2123.34%)
Mutual labels:  cli, terminal, tui
Nord Dircolors
An arctic, north-bluish clean and elegant dircolors theme.
Stars: ✭ 328 (-48.26%)
Mutual labels:  cli, terminal, colors
Peaclock
A responsive and customizable clock, timer, and stopwatch for the terminal.
Stars: ✭ 314 (-50.47%)
Mutual labels:  cli, terminal, tui
S Tui
Terminal-based CPU stress and monitoring utility
Stars: ✭ 2,825 (+345.58%)
Mutual labels:  cli, terminal, tui
Pulsemixer
CLI and curses mixer for PulseAudio
Stars: ✭ 441 (-30.44%)
Mutual labels:  cli, terminal, tui
Jquery.terminal
jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
Stars: ✭ 2,623 (+313.72%)
Mutual labels:  cli, terminal, tui
Tty
Toolkit for developing sleek command line apps.
Stars: ✭ 2,329 (+267.35%)
Mutual labels:  cli-app, cli, terminal
Qrc
QR code generator for text terminals (ASCII art, Sixel)
Stars: ✭ 200 (-68.45%)
Mutual labels:  cli, terminal, tui
Spotui
Spotify in the terminal 💻🎶
Stars: ✭ 302 (-52.37%)
Mutual labels:  cli, terminal, tui
Bottom
Yet another cross-platform graphical process/system monitor.
Stars: ✭ 3,182 (+401.89%)
Mutual labels:  cli, terminal, tui
Mandown
man-page inspired Markdown viewer
Stars: ✭ 173 (-72.71%)
Mutual labels:  cli, terminal, tui
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+417.19%)
Mutual labels:  cli-app, cli, terminal
Stig
TUI and CLI for the BitTorrent client Transmission
Stars: ✭ 360 (-43.22%)
Mutual labels:  cli, terminal, tui

tml - Terminal Markup Language

Build Status GoDoc

A Go module (and standalone binary) to make the output of coloured/formatted text in the terminal easier and more readable.

You can use it in your Go programs, and bash etc. too.

Example screenshot

Usage in Go

The output of coloured/formatted text is easy using the following syntax:

package main

import "github.com/liamg/tml"

func main() {
    tml.Printf("<red>this text is <bold>red</bold></red> and the following is <green>%s</green>\n", "not red")
}

Usage in Bash

First, install tml:

go get -u github.com/liamg/tml/tml

Then you can simply pipe text containing tags to tml:

#!/bin/bash

echo "<red>this text is <bold>red</bold></red> and the following is <green>not red</green>" | tml

Format

Each tag is enclosed in angle brackets, much like HTML.

You can nest tags as deeply as you like.

It's not required to close tags you've opened, though it can make for easier reading.

Available Tags

Foreground Colours

  • <red>
  • <green>
  • <yellow>
  • <blue>
  • <magenta>
  • <cyan>
  • <lightgrey>
  • <darkgrey>
  • <black>
  • <white>
  • <lightred>
  • <lightgreen>
  • <lightyellow>
  • <lightblue>
  • <lightmagenta>
  • <lightcyan>

Background Colours

  • <bg-red>
  • <bg-green>
  • <bg-yellow>
  • <bg-blue>
  • <bg-magenta>
  • <bg-cyan>
  • <bg-lightgrey>
  • <bg-darkgrey>
  • <bg-black>
  • <bg-white>
  • <bg-lightred>
  • <bg-lightgreen>
  • <bg-lightyellow>
  • <bg-lightblue>
  • <bg-lightmagenta>
  • <bg-lightcyan>

Attributes

  • <bold>
  • <dim>
  • <underline>
  • <blink>
  • <reverse>
  • <hidden>
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].