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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue