|
|
|
@ -90,13 +90,16 @@ class Interface(cmd.Cmd):
|
|
|
|
|
print '("current", "previous" or "next")' |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
print 'Message %d of %d:' % (self._cursor + 1, len(self._messages)) |
|
|
|
|
print |
|
|
|
|
|
|
|
|
|
message = self._messages[self._cursor] |
|
|
|
|
console_utils.print_messages(message, self._connection) |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
def do_list(self, line=None): |
|
|
|
|
"""Print a summary of the messages in the list.""" |
|
|
|
|
for pos in xrand(len(self._message)): |
|
|
|
|
for pos in xrange(len(self._messages)): |
|
|
|
|
if pos == self._cursor: |
|
|
|
|
indicator = '>' |
|
|
|
|
else: |
|
|
|
|