aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.h
blob: 51fc327f2bd2f1a2f78a6a7d72769ff431db8fcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _RUNES_TERM_H
#define _RUNES_TERM_H

struct vt100_screen;
typedef struct vt100_screen VT100Screen;

struct runes_term {
    RunesConfig *config;
    RunesDisplay *display;
    RunesWindowBackend *w;
    RunesPtyBackend *pty;
    VT100Screen *scr;
    RunesLoop *loop;

    int refcnt;
};

void runes_term_init(RunesTerm *t, RunesLoop *loop, int argc, char *argv[]);
void runes_term_set_window_size(RunesTerm *t, int xpixel, int ypixel);
void runes_term_refcnt_inc(RunesTerm *t);
void runes_term_refcnt_dec(RunesTerm *t);
void runes_term_cleanup(RunesTerm *t);

#endif