diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-04 20:50:50 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-04 20:50:50 -0400 |
commit | b318915de6cac717a53d3df4663f716fbe389e77 (patch) | |
tree | 2e09d38bfa24fa37c5617c0b8e017b6990c429b1 | |
parent | 2cad542ca939cd42a30f3d0b75f97a14095e3da5 (diff) | |
download | runes-b318915de6cac717a53d3df4663f716fbe389e77.tar.gz runes-b318915de6cac717a53d3df4663f716fbe389e77.zip |
scroll to bottom on input
-rw-r--r-- | src/pty-unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |