diff options
Diffstat (limited to 'src/pty-unix.c')
-rw-r--r-- | src/pty-unix.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/pty-unix.c b/src/pty-unix.c index d712aad..6cc4996 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -20,7 +20,6 @@ extern char **environ; static int runes_pty_input_cb(void *t); -static void runes_pty_flush_cb(void *t); RunesPty *runes_pty_new() { @@ -165,10 +164,7 @@ static int runes_pty_input_cb(void *t) ((RunesTerm *)t)->scr, pty->readbuf, to_process); pty->remaininglen = to_process - processed; memmove(pty->readbuf, pty->readbuf + processed, pty->remaininglen); - if (!pty->scheduled_flush) { - runes_loop_at_idle(((RunesTerm *)t)->loop, t, runes_pty_flush_cb); - pty->scheduled_flush = 1; - } + runes_window_flush(t); return 1; } @@ -179,11 +175,3 @@ static int runes_pty_input_cb(void *t) return 0; } } - -static void runes_pty_flush_cb(void *t) -{ - RunesPty *pty = ((RunesTerm *)t)->pty; - - runes_window_flush(t); - pty->scheduled_flush = 0; -} |