aboutsummaryrefslogtreecommitdiffstats
path: root/term.h
blob: a62821b5e3ad03daf8f536beb91025d5a21b74dd (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _RUNES_TERM_H
#define _RUNES_TERM_H

struct runes_term {
    RunesWindowBackend w;
    RunesPtyBackend pty;

    cairo_t *cr;
    cairo_t *backend_cr;
    uv_loop_t *loop;

    cairo_pattern_t *bgcolor;
    cairo_pattern_t *fgcolor;
    cairo_pattern_t *cursorcolor;

    char *font_name;
    double font_size;
    char font_italic;
    char font_bold;
    char font_underline;

    char show_cursor;
    char focused;

    cairo_pattern_t *colors[8];

    int row;
    int col;

    int rows;
    int cols;
    int xpixel;
    int ypixel;
};

void runes_term_init(RunesTerm *t, int argc, char *argv[]);
void runes_term_cleanup(RunesTerm *t);

#endif