Remove --color-test

This commit is contained in:
Anthony Sottile
2020-02-17 17:08:26 -08:00
parent a36ea5d1ed
commit e0b10e8b9c
4 changed files with 1 additions and 101 deletions

View File

@@ -46,10 +46,6 @@ class Screen:
self._prev_screenshot = ret
return ret
def addstr(self, y, x, s):
line = self.lines[y]
self.lines[y] = line[:x] + s + line[x + len(s):]
def insstr(self, y, x, s):
line = self.lines[y]
self.lines[y] = (line[:x] + s + line[x:])[:self.width]
@@ -145,9 +141,6 @@ class CursesScreen:
def keypad(self, val):
pass
def addstr(self, y, x, s, attr=0):
self._runner.screen.addstr(y, x, s)
def insstr(self, y, x, s, attr=0):
self._runner.screen.insstr(y, x, s)
@@ -308,9 +301,6 @@ class DeferredRunner:
_curses_error = curses.error # so we don't mock the exception
def _curses_color_pair(self, n):
return 0
def _curses_keyname(self, k):
return KEYS_CURSES.get(k, b'')