in a tty, ask user to press <Enter> when text exceed the term height

This commit is contained in:
Romain Bignon 2010-10-16 12:10:12 +02:00
commit d2c70b7e98
6 changed files with 24 additions and 40 deletions

View file

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