Article View: es.comp.os.linux.programacion
Article #14930Re: Bash y ANSI
From: Francisco Artese
Date: Sat, 02 Sep 2000 17:51
Date: Sat, 02 Sep 2000 17:51
48 lines
2431 bytes
2431 bytes
J. A. Borrego <jabb@vyb.com> Public�:
> Puedes mirar en la p�gina:
> http://www.linux-es.com/general.php?/HOWTO/translations/es/mini/Lscolor-Como
> Saludos ;-)
Muchas gracias, tu sugerencia me permitio encontrar esto:
dircolors --print-database
# Below are the color init strings for the basic file types. A color
init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan
37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan
47=white
NORMAL 00 # global default, although everything should be
something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link
FIFO 40;33 # pipe
SOCK 01;35 # socket
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file
# This is for files with execute permission:
EXEC 01;32
De donde deduje lo siguiente:
echo -en "\\033[5;31m"
y aleluya !! ya tengo mi equivalente a ANSI
Muchas Gracias
--
=======================================================
Francisco F. Artese -- BUENOS AIRES ARGENTINA
Linux user #174223 -- mailto:fank@artese.com.ar
Powered by Linux Mandrake 7.0
=======================================================
Technical Details
Message-ID:
<4nero8.kb2.ln@localhost.localdomain>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!193.162.153.122.MISMATCH!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-2-120.movi.com.AR!not-for-mailReferences:
<3pooo8.te1.ln@localhost.localdomain> <39aff23e$1@news>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,1f5e3e781f96324a
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2000-09-02 11:00:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!193.162.153.122.MISMATCH!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-2-120.movi.com.AR!not-for-mail
From: Francisco Artese <frank@artese.com.ar>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Bash y ANSI
Date: Sat, 2 Sep 2000 14:51:32 -0300
Lines: 48
Message-ID: <4nero8.kb2.ln@localhost.localdomain>
References: <3pooo8.te1.ln@localhost.localdomain> <39aff23e$1@news>
NNTP-Posting-Host: ppp-2-120.movi.com.ar (200.51.2.120)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 967917592 12111666 200.51.2.120 (16 [42069])
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (Linux/2.2.14-15mdk (i686))