aversive_10-03-12/modules/ihm/vt100/vt100.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include <aversive/pgmspace.h>
#include "vt100.h"

Go to the source code of this file.

Functions

void vt100_init (struct vt100 *vt)
int8_t vt100_parser (struct vt100 *vt, char ch)

Variables

const prog_char *vt100_commands[] PROGMEM


Function Documentation

void vt100_init ( struct vt100 vt  ) 

Init

Definition at line 65 of file vt100.c.

References vt100::state, and VT100_INIT.

Referenced by rdline_char_in(), and rdline_newline().

int8_t vt100_parser ( struct vt100 vt,
char  c 
)

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().


Variable Documentation

const prog_char* vt100_commands [] PROGMEM

Initial value:

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

Definition at line 57 of file vt100.c.


Generated on Fri Mar 12 06:32:07 2010 for AVR by  doxygen 1.5.6