pull prep

This commit is contained in:
tkarrass 2013-11-02 21:21:20 +01:00
parent 38ca85a7b3
commit 1adac2fce0

View File

@ -53,3 +53,25 @@ void callback(const struct message *msg, const struct prog_info *pinfo) {
}
void prntscreen(const struct message *msg, const struct prog_info *pinfo) {
static int init = 0;
static int rows;
static int cols;
if (!init) {
initscr();
getmaxyx(stdscr, rows, cols);
init = 1;
}
int frame = msg->frame;
int right = pinfo->client_offset;
int left = right + cols;
int pos = frame + off;
refresh();
}