slitaz-base-files view doc/libtaz.txt @ rev 176

Update several function's colorize
author Christian Mesh <meshca@clarkson.edu>
date Sat May 19 03:57:26 2012 -0500 (2012-05-19)
parents 1db99ad848a8
children d4df77afbed6
line source
2 SYNOPSIS
3 . /lib/libtaz.sh
4 function
6 DESCRIPTION
7 LibTaz is the base SliTaz SHell library used by almost all tools and
8 utilities. It provides common SHell script functions, parses the cmdline
9 options and store values in a variable. The output messages can be
10 formatted for raw/text, gtk, html and by default they are formatted for
11 a standard terminal supporting colors. LibTaz is in the directory
12 /lib/libtaz.sh since it is used when /usr may not be mounted.
14 FUNCTIONS
15 status Return command status [Done|Failed]
16 separator Display a line separator
17 newline Echo a new line if gettext or echo -n is used
18 boldify [string] Use a bold font for term, html or GTK output
19 colorize [string] NB Colorize a string in term mode
20 indent NB [string] Indent text in term mode
21 check_root Check if user is logged as root
22 debug [string] Display a DEBUG message when --debug is used
23 confirm Read answer to confirm an action
24 log [string] Log activity, $activity must be set
26 OPTIONS
27 --output=[raw|gtk|html]
28 --activity=/path/files/activity
30 EXAMPLES
31 log "Message"
32 check_root
34 AUTHORS
35 Written by Christophe Lincoln