When running kittens respect current screen scroll

This commit is contained in:
Kovid Goyal
2018-02-14 18:35:32 +05:30
parent 51e3e9997c
commit 0bda7b3679
4 changed files with 57 additions and 2 deletions

View File

@@ -330,6 +330,11 @@ class Window:
ans = h + '\n' + ans
return ans
def as_text(self, as_ansi=False):
lines = []
self.screen.as_text(lines.append, as_ansi)
return ''.join(lines)
# actions {{{
def show_scrollback(self):