From b318915de6cac717a53d3df4663f716fbe389e77 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 4 May 2014 20:50:50 -0400 Subject: scroll to bottom on input --- src/pty-unix.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/pty-unix.c b/src/pty-unix.c index 38afef1..3faeb7f 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -109,6 +109,11 @@ void runes_pty_backend_set_window_size(RunesTerm *t) void runes_pty_backend_write(RunesTerm *t, char *buf, size_t len) { write(t->pty.master, buf, len); + if (t->scr.row_visible_offset != 0) { + t->scr.row_visible_offset = 0; + t->scr.dirty = 1; + runes_window_backend_request_flush(t); + } } void runes_pty_backend_request_close(RunesTerm *t) -- cgit v1.2.3-54-g00ecf