Logo Search packages:      
Sourcecode: iterm version File versions  Download package

VT100* VT100_new (  ) 

VT100 methods

VT100 Object Constructor

Definition at line 111 of file vt100.c.

References _VT100::all_states, and _VT100::current_state.

{
  VT100 *vt100;
  if((vt100 = (VT100 *)malloc(sizeof(VT100))) == NULL)
  {
    perror("VT100_new");
    return NULL;
  }
  GroundState_init(vt100);
  ESCState_init(vt100);
  CSIState_init(vt100);
  IGNState_init(vt100);
  IESState_init(vt100);
  SCSState_init(vt100);
  SCRState_init(vt100);
  EIGState_init(vt100);
  DECState_init(vt100);
  OSCState_init(vt100);
#ifdef BIDI
  BIDIState_init(vt100);
#endif

  vt100->current_state = &vt100->all_states[GROUND_STATE];
  return vt100;
}


Generated by  Doxygen 1.6.0   Back to index