#define	CHILD_MAX	5

typedef struct _CP {
    short	cur_x,cur_y;
    int		lin_max;
    int		lin_pos;
    int		top_ptr;
    int		now_ptr;
    char	bak_cod;
    char	pas_flg;
    char	sec_flg;
    char	wrt_flg;
    char	*file_name;
} CHI_PTR;

typedef struct {
    short	open_flg;
    short	ins_mode;
    short	wrt_mode;
    short	color;
    short	wind_y,size_y,max_y;
    short	now;
    CHI_PTR	child[CHILD_MAX];
} WIND;
