aboutsummaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-09 00:11:10 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-09 00:11:10 -0400
commit6beb7818efb57851a042953937af72163f1bde6c (patch)
tree6abc8763d6182f4c3de6da8567d05f995fd53db0 /term.c
parentef5cd6e10e93ef973536d2df2ad57ac42a2118ea (diff)
downloadrunes-6beb7818efb57851a042953937af72163f1bde6c.tar.gz
runes-6beb7818efb57851a042953937af72163f1bde6c.zip
spawn a shell process and run it on a pty
not at all convinced that this is correct, but it at least does things
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/term.c b/term.c
index 1335678..bf1f078 100644
--- a/term.c
+++ b/term.c
@@ -4,8 +4,12 @@
void runes_term_init(RunesTerm *t, int argc, char *argv[])
{
+ runes_pty_backend_init(t);
+
t->loop = uv_default_loop();
+ runes_pty_backend_loop_init(t);
+
runes_window_backend_init(t, argc, argv);
t->cr = cairo_create(runes_window_backend_surface_create(t));
}
@@ -14,4 +18,5 @@ void runes_term_cleanup(RunesTerm *t)
{
cairo_destroy(t->cr);
runes_window_backend_cleanup(t);
+ runes_pty_backend_cleanup(t);
}