aboutsummaryrefslogtreecommitdiffstats
path: root/src/runes.c
blob: b59ab33a2c98080ce3458f2e2fb1b6fb053c7558 (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 <locale.h>

#include "runes.h"

#include "loop.h"
#include "term.h"
#include "window-backend-xlib.h"

int main (int argc, char *argv[])
{
    RunesLoop *loop;
    RunesWindowBackend *wb;

    setlocale(LC_ALL, "");

    loop = runes_loop_new();
    wb = runes_window_backend_new();
    runes_term_register_with_loop(runes_term_new(argc, argv, wb), loop);

    runes_loop_run(loop);

#ifdef RUNES_VALGRIND
    runes_loop_cleanup(loop);
    runes_window_backend_global_cleanup(wg);
#endif

    return 0;
}