ref: ccb2fe62a80e247e5cb6ae83addab916ec0d9696
dir: /mez.h/
typedef struct App App;
typedef struct Chan Chan;
typedef struct Net Net;
typedef struct Text Text;
struct App {
char *host, *user, *passwd;
};
// The multiple indirection for the screen is because
// multiple texts may share the same screen.
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];
};