in a tty, ask user to press <Enter> when text exceed the term height
This commit is contained in:
parent
e1f21bca03
commit
d2c70b7e98
6 changed files with 24 additions and 40 deletions
|
|
@ -29,9 +29,6 @@ __all__ = ['Videoob']
|
|||
class VideoListFormatter(IFormatter):
|
||||
count = 0
|
||||
|
||||
def after_format(self, formatted):
|
||||
print formatted.encode('utf-8')
|
||||
|
||||
def flush(self):
|
||||
self.count = 0
|
||||
pass
|
||||
|
|
@ -50,10 +47,6 @@ class VideoListFormatter(IFormatter):
|
|||
result += u' (%s/%s)' % (item['rating'], item['rating_max'])
|
||||
return result
|
||||
|
||||
def set_header(self, string):
|
||||
if self.display_header:
|
||||
print string.encode('utf-8')
|
||||
|
||||
class Videoob(ReplApplication):
|
||||
APPNAME = 'videoob'
|
||||
VERSION = '0.3'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue