shithub: mez

ref: d78b63812f0bb408f250e574a4a041890b38c9e1
dir: /mez.h/

View raw version
typedef struct App App;
typedef struct Chan Chan;
typedef struct Net Net;
typedef struct Text Text;

struct App {
	char *host, *user, *passwd;
};

struct Text {
	Frame;
	Rune *text;
	uint textlen, topline, nlines, linescap, textcap, *lines;
	Rectangle scrollr, bodyr;
	Image *screen, *cols[NCOL];
	Screen *_screen;
	char *wsys;
};

struct Chan {
	Text body, nicks;
	Rune *topic;
};

struct Net {
	Chan;
	char *name, *host, *state, *nick, *user, *real;
	Chan *channels;
	int fd, id;
	char buf[1024];
};