Moved utility functions, enabled window resizing.

This commit is contained in:
Michael Lazar
2015-01-25 13:00:35 -08:00
parent 3fb39d344d
commit 79a0e5b16e
4 changed files with 87 additions and 61 deletions

View File

@@ -2,7 +2,7 @@ import curses
class Navigator(object):
"""
Handles cursor movement and screen paging.
Handles math behind cursor movement and screen paging.
"""
def __init__(
@@ -67,13 +67,14 @@ class Navigator(object):
class BaseViewer(object):
"""
Base terminal viewer incorperating a cursor to navigate content
Base terminal viewer incorperates a cursor to navigate content
"""
def __init__(self, content):
self.content = content
self.nav = Navigator(self.content.get)
self._subwindows = None
def draw_content(self):