2007-03-15 22:29:45 +00:00
|
|
|
\subsubsection{Changing the CLI Prompt}
|
2004-05-01 14:49:36 +00:00
|
|
|
|
2007-03-15 22:29:45 +00:00
|
|
|
The CLI prompt is set with the ASTERISK\_PROMPT UNIX environment variable that
|
2004-05-01 14:49:36 +00:00
|
|
|
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:
|
|
|
|
|
2007-10-15 13:12:51 +00:00
|
|
|
\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
|
2008-07-30 15:30:18 +00:00
|
|
|
\item \%u - Username
|
|
|
|
\item \%g - Groupname
|
2007-10-15 13:12:51 +00:00
|
|
|
\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}
|
2007-03-15 22:29:45 +00:00
|
|
|
|
2008-07-30 15:30:18 +00:00
|
|
|
On systems which implement getloadavg(3), you may also use:
|
2007-03-15 22:29:45 +00:00
|
|
|
|
2007-10-15 13:12:51 +00:00
|
|
|
\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}
|