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__ = ['Radioob']
|
|||
class RadioListFormatter(IFormatter):
|
||||
count = 0
|
||||
|
||||
def after_format(self, formatted):
|
||||
print formatted.encode('utf-8')
|
||||
|
||||
def flush(self):
|
||||
self.count = 0
|
||||
pass
|
||||
|
|
@ -48,10 +45,6 @@ class RadioListFormatter(IFormatter):
|
|||
result += ' (Current: %s - %s)' % (item['current'].artist, item['current'].title)
|
||||
return result
|
||||
|
||||
def set_header(self, string):
|
||||
if self.display_header:
|
||||
print string.encode('utf-8')
|
||||
|
||||
class Radioob(ReplApplication):
|
||||
APPNAME = 'radioob'
|
||||
VERSION = '0.3'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -33,9 +33,6 @@ def sizeof_fmt(num):
|
|||
num /= 1024.0
|
||||
|
||||
class TorrentInfoFormatter(IFormatter):
|
||||
def after_format(self, formatted):
|
||||
print formatted.encode('utf-8')
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
|
@ -53,16 +50,9 @@ class TorrentInfoFormatter(IFormatter):
|
|||
result += item['description']
|
||||
return result
|
||||
|
||||
def set_header(self, string):
|
||||
if self.display_header:
|
||||
print string.encode('utf-8')
|
||||
|
||||
class TorrentListFormatter(IFormatter):
|
||||
count = 0
|
||||
|
||||
def after_format(self, formatted):
|
||||
print formatted.encode('utf-8')
|
||||
|
||||
def flush(self):
|
||||
self.count = 0
|
||||
pass
|
||||
|
|
@ -78,10 +68,6 @@ class TorrentListFormatter(IFormatter):
|
|||
result += ' %10s (Seed: %2d / Leech: %2d)' % (size, item['seeders'], item['leechers'])
|
||||
return result
|
||||
|
||||
def set_header(self, string):
|
||||
if self.display_header:
|
||||
print string.encode('utf-8')
|
||||
|
||||
class Weboorrents(ReplApplication):
|
||||
APPNAME = 'weboorrents'
|
||||
VERSION = '0.3'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue