aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.h
blob: 3a915f71cdcbe866d33cbabb216f7de7ec2bd225 (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

#include <vt100.h>

struct runes_term {
    RunesConfig *config;
    RunesDisplay *display;
    RunesWindow *w;
    RunesPty *pty;
    VT100Screen *scr;
    RunesLoop *loop;

    int refcnt;
};

RunesTerm *runes_term_new(
    int argc, char *argv[], char *envp[], char *cwd, RunesWindowBackend *wb);
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