More work on making Screen native

This commit is contained in:
Kovid Goyal
2016-11-12 13:52:18 +05:30
parent 939ffe191f
commit 2c0523246d
12 changed files with 355 additions and 15 deletions

View File

@@ -5,7 +5,6 @@
from unittest import TestCase
from kitty.screen import Screen
from kitty.config import defaults
from kitty.fast_data_types import LineBuf, Cursor
@@ -32,8 +31,7 @@ class BaseTest(TestCase):
ae = TestCase.assertEqual
def create_screen(self, cols=5, lines=5, history_size=5):
opts = defaults._replace(scrollback_lines=history_size)
s = Screen(opts, columns=cols, lines=lines)
s = Screen(history_size, columns=cols, lines=lines)
return s
def assertEqualAttributes(self, c1, c2):