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
|
|
@ -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