From 3e8d4ab0235aba332c8183462de4106795496b20 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 1 May 2016 20:48:59 -0400 Subject: the event loop should own the terminal, not the other way around this way, we should be able to have multiple terminals in the same process --- src/pty-unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pty-unix.c') diff --git a/src/pty-unix.c b/src/pty-unix.c index 7c06c9b..69cc99c 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -84,9 +84,9 @@ void runes_pty_backend_spawn_subprocess(RunesTerm *t) } } -void runes_pty_backend_init_loop(RunesTerm *t) +void runes_pty_backend_init_loop(RunesTerm *t, RunesLoop *loop) { - runes_loop_start_work(t, runes_pty_backend_read, + runes_loop_start_work(loop, t, runes_pty_backend_read, runes_pty_backend_got_data); } -- cgit v1.2.3-54-g00ecf