blob: 1e6cf9248f5dd983317930e9c20519e1e656ea67 (
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
|
#include <stdlib.h>
#include "runes.h"
void runes_term_init(RunesTerm *t, int argc, char *argv[])
{
/* doing most of the pty initialization right at the beginning, because
* libuv will set up a bunch of state (including potentially things like
* spawning threads) when that is initialized, and i'm not really sure how
* that interacts with forking */
runes_pty_backend_init(t);
t->loop = uv_default_loop();
runes_window_backend_init(t);
runes_display_init(t);
runes_window_backend_loop_init(t, argc, argv);
runes_pty_backend_loop_init(t);
}
void runes_term_cleanup(RunesTerm *t)
{
cairo_destroy(t->cr);
runes_window_backend_cleanup(t);
runes_pty_backend_cleanup(t);
}
|