pull prep
This commit is contained in:
parent
38ca85a7b3
commit
1adac2fce0
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user