Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 2.07 KB

2014-06-01-term.md

File metadata and controls

74 lines (57 loc) · 2.07 KB
layout title description category tags
post
term
Terminal fun written in bash inspired by clibs/term
default
animation
color

This package allows you to manipulate colors, cursor position and make animations on the terminal.

{% highlight bash %} $ bpkg install -g term {% endhighlight %}

Usage

term works by accepting commands, just like git.

{% highlight bash %}

It's supposed to output green-ish underlined text

$ { term color green; } && { term underline; } && { echo heyaaaa; } heyaaaa {% endhighlight %}

term's API

{% highlight bash %} usage: term [-hV] [args]

commands:

write Write a terminal escape code cursor Perform operation to cursor color Set terminal color by name (See colors) background Set terminal background by name (See colors) move Move to (x, y) transition Transition to (x, y) clear

Clear terminal section by name (See sections) reset Reset the terminal escape code sequence bright Write bright escape code dim Write dim escape code underline Write underline escape code blink Write blink escape code reverse Write reverse escape code hidden Write hidden escape code

colors:

black $ term color black red $ term color red green $ term color green yellow $ term color yellow blue $ term color blue magenta $ term color magenta cyan $ term color cyan white $ term color white gray|grey $ term color gray

sections:

start Start of line end End of line up Upper section down Lower section line Current line screen Entire screen {% endhighlight %}

Links