File: cliprompt.tex

package info (click to toggle)
asterisk 1%3A1.8.13.1~dfsg1-3%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 49,336 kB
  • sloc: ansic: 497,975; sh: 11,763; cpp: 5,934; makefile: 3,065; perl: 3,019; yacc: 2,147; xml: 498; sql: 387; tcl: 113; php: 62; python: 42
file content (29 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\subsubsection{Changing the CLI Prompt}

The CLI prompt is set with the ASTERISK\_PROMPT UNIX environment variable that
you set from the Unix shell before starting Asterisk

You may include the following variables, that will be replaced by
the current value by Asterisk:

\begin{itemize}
    \item \%d - Date (year-month-date)
    \item \%s - Asterisk system name (from asterisk.conf)
    \item \%h - Full hostname
    \item \%H - Short hostname
    \item \%t - Time
    \item \%u - Username
    \item \%g - Groupname
    \item \%\% - Percent sign
    \item \%\# - '\#' if Asterisk is run in console mode, '$>$' if running as remote console
    \item \%Cn[;n] - Change terminal foreground (and optional background) color to specified
    A full list of colors may be found in \path{include/asterisk/term.h}
\end{itemize}

On systems which implement getloadavg(3), you may also use:

\begin{itemize}
    \item \%l1 - Load average over past minute
    \item \%l2 - Load average over past 5 minutes
    \item \%l3 - Load average over past 15 minutes
\end{itemize}