Giter Club home page Giter Club logo

art-pool-current's Introduction

Basic guide to color and change your ASCII art with "tput xterm" and PS1 Shell

Set text color "foreground" with setaf

echo "$(tput -T xterm setaf 'color_number')" echo "$(tput -T xterm setaf 2)"

Set background color with setab

echo "$(tput -T xterm setab 'color_number')" echo "$(tput -T xterm setab 6)"

The basic 8 color options for tput

    0 = black
    1 = red
    2 = green
    3 = yellow
    4 = blue
    5 = magenta
    6 = cyan
    7 = white

PS1 Shell to underline ASCII chars

printf "\e[4m"

PS1 Shell for Bold text / ASCII

printf "\e[1m"

For both Bold and underlined option on one line

printf "\e[1m\e[4m"

Example Linux bash script "bold, underline, and color cyan"

Add printf "\n" (newline) if needed

#!/bin/bash

printf "\e[1m\e[4m"

echo "$(tput -T xterm setaf 6)"

printf "\n"

cat /your/path/to/ascii_art.txt

printf "\n"

art-pool-current's People

Contributors

oreobyte avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.