class TmuxStylePrinter

Defined in:

tmux_style_printer.cr

Constant Summary

COLOR_MAP = {black: 0, red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, white: 7}
LAYER_MAP = {bg: "setab", fg: "setaf"}
STYLE_MAP = {bright: "bold", bold: "bold", dim: "dim", underscore: "smul", reverse: "rev", italics: "sitm"}
STYLE_SEPARATOR = /[ ,]+/

Constructors

Instance Method Summary

Constructor Detail

def self.new(shell : TmuxStylePrinter::Shell = ShellExec.new) #

[View source]

Instance Method Detail

def print(input, reset_styles_after = false) #

[View source]