summaryrefslogtreecommitdiffstats
path: root/helpers.h
blob: 941c9b0b381ba9e067d3a51bb800a1e9bc812f3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <ncurses.h>
#include <panel.h>
#include <stddef.h>

extern void *xmalloc(size_t size);

extern void cursinit(void);
extern void cursupdate(void);
extern PANEL *newpan(int h, int w, int y, int x);
extern void delpan(PANEL *pan);
extern void reset_panel(PANEL *pan, int h, int w, int y, int x);
extern int pprintw(PANEL *pan, const char *fmt, ...);
extern int pclear(PANEL *pan);
extern int pattron(PANEL *pan, int attrs);
extern int pattroff(PANEL *pan, int attrs);