Scrollback filling should happen after cursor position is finalized
This commit is contained in:
@@ -91,14 +91,10 @@ class BaseTest(TestCase):
|
||||
options = Options(merge_configs(defaults._asdict(), final_options))
|
||||
set_options(options)
|
||||
|
||||
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None, content=()):
|
||||
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None):
|
||||
self.set_options(options)
|
||||
c = Callbacks()
|
||||
s = Screen(c, lines, cols, scrollback, cell_width, cell_height, 0, c)
|
||||
for content_line in content:
|
||||
s.draw(content_line)
|
||||
s.linefeed()
|
||||
s.carriage_return()
|
||||
return s
|
||||
|
||||
def assertEqualAttributes(self, c1, c2):
|
||||
|
||||
Reference in New Issue
Block a user