aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.h
blob: 10bff11f6ec522d36ab07d59182c38c5615dca8b (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
25
#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;
};

RunesTerm *runes_term_new(int argc, char *argv[], RunesWindowBackendGlobal *wg);
void runes_term_register_with_loop(RunesTerm *t, RunesLoop *loop);
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_delete(RunesTerm *t);

#endif