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

Add: pt_BR.po && update httpd-cgi.desktop
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Jan 22 23:57:14 2013 -0200 (2013-01-22)
parents 4ca3c7426952
children b2311939ad7e
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 NB [string] Colorize a string in term mode
20 indent NB [string] Indent text in term mode
21 emsg [string] Output mark up messages
22 check_root Check if user is logged as root
23 debug [string] Display a DEBUG message when --debug is used
24 confirm Read answer to confirm an action
25 log [string] Log activity, $activity must be set
27 OPTIONS
28 --output=[raw|gtk|html]
29 --activity=/path/files/activity
31 EXAMPLES
32 log "Message"
33 check_root
34 emsg "<b>bold</b> <c 31>red</c> <c 32>green</c> separator<-> newline<n> <i 26>indent"
36 AUTHORS
37 Written by Christophe Lincoln