[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CLI bunter machen



On Mon, Sep 24, 2007 at 06:47:49PM +0200, Elimar Riesebieter wrote:
> Hehehehe ;)

#! /bin/sh
############################################################
# Nico Golde <nico@ngolde.de> Homepage: http://www.ngolde.de
# Letzte Änderung: Mon Feb 16 16:24:41 CET 2004
############################################################

for attr in 0 1 4 5 7 ; do
    echo
"----------------------------------------------------------------"
    printf "ESC[%s;Foreground;Background - \n" $attr
    for fore in 30 31 32 33 34 35 36 37; do
        for back in 40 41 42 43 44 45 46 47; do
            printf '\033[%s;%s;%sm %02s;%02s  ' $attr $fore $back $fore
$back
        done
    printf '\n'
    done
    printf '\033[0m'
done

Wie man sieht, von Nico Golde. Nutze ich eigentlich immer, wenn ich was
nachsehen will.


ciao, Dirk
-- 
|           Akkuschrauber and AEG GSM stuff           |
|  The "Ruhrgebiet", best place to live in Germany!   |
| Visit my homepage:   http://www.nutrimatic.ping.de/ |



Reply to: