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
|
|
@ -28,9 +28,6 @@ class SimpleFormatter(IFormatter):
|
|||
self.field_separator = field_separator
|
||||
self.key_value_separator = key_value_separator
|
||||
|
||||
def after_format(self, formatted):
|
||||
print formatted.encode('utf-8')
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
|
@ -38,7 +35,3 @@ class SimpleFormatter(IFormatter):
|
|||
return self.field_separator.join(u'%s%s' % (
|
||||
(u'%s%s' % (k, self.key_value_separator) if self.display_keys else ''), v)
|
||||
for k, v in item.iteritems())
|
||||
|
||||
def set_header(self, string):
|
||||
if self.display_header:
|
||||
print string.encode('utf-8')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue