\section{aversive\_\-10-03-12/modules/ihm/vt100/vt100.c File Reference}
\label{vt100_8c}\index{aversive\_\-10-03-12/modules/ihm/vt100/vt100.c@{aversive\_\-10-03-12/modules/ihm/vt100/vt100.c}}
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdarg.h$>$}\par
{\tt \#include $<$ctype.h$>$}\par
{\tt \#include $<$aversive/pgmspace.h$>$}\par
{\tt \#include \char`\"{}vt100.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf vt100\_\-init} (struct {\bf vt100} $\ast$vt)
\item 
int8\_\-t {\bf vt100\_\-parser} (struct {\bf vt100} $\ast$vt, char ch)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
const prog\_\-char $\ast$vt100\_\-commands[$\,$] {\bf PROGMEM}
\end{CompactItemize}


\subsection{Function Documentation}
\index{vt100.c@{vt100.c}!vt100\_\-init@{vt100\_\-init}}
\index{vt100\_\-init@{vt100\_\-init}!vt100.c@{vt100.c}}
\subsubsection[vt100\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void vt100\_\-init (struct {\bf vt100} $\ast$ {\em vt})}\label{vt100_8c_4ea94a1badbb6e6f57cab48e713cd9f9}


Init 

Definition at line 65 of file vt100.c.

References vt100::state, and VT100\_\-INIT.

Referenced by rdline\_\-char\_\-in(), and rdline\_\-newline().\index{vt100.c@{vt100.c}!vt100\_\-parser@{vt100\_\-parser}}
\index{vt100\_\-parser@{vt100\_\-parser}!vt100.c@{vt100.c}}
\subsubsection[vt100\_\-parser]{\setlength{\rightskip}{0pt plus 5cm}int8\_\-t vt100\_\-parser (struct {\bf vt100} $\ast$ {\em vt}, \/  char {\em c})}\label{vt100_8c_c7bdc4dc3b6e5c1f5dc7e97cde917d5d}


Input a new character. Return -1 if the character is not part of a control sequence Return -2 if c is not the last char of a control sequence Else return the index in vt100\_\-commands[] 

Definition at line 94 of file vt100.c.

References vt100::buf, vt100::bufpos, vt100::state, VT100\_\-BUF\_\-SIZE, VT100\_\-ESCAPE, VT100\_\-ESCAPE\_\-CSI, and VT100\_\-INIT.

Referenced by rdline\_\-char\_\-in().

\subsection{Variable Documentation}
\index{vt100.c@{vt100.c}!PROGMEM@{PROGMEM}}
\index{PROGMEM@{PROGMEM}!vt100.c@{vt100.c}}
\subsubsection[PROGMEM]{\setlength{\rightskip}{0pt plus 5cm}const prog\_\-char$\ast$ vt100\_\-commands [$\,$] {\bf PROGMEM}}\label{vt100_8c_ce0c5ab4019aaf8609f61e5fe1066a65}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
        cmd0, cmd1, cmd2, cmd3, cmd4, cmd5, cmd6, cmd7,
        cmd8, cmd9, cmd10, cmd11, cmd12, cmd13, cmd14,
        cmd15, cmd16, cmd17, cmd18, cmd19, cmd20,
        cmd21,
}
\end{verbatim}
\end{Code}


Definition at line 57 of file vt100.c.