do not use a bold prompt (there are a several of problems)
This commit is contained in:
parent
a1e8a67225
commit
41a76723b6
2 changed files with 8 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ class WebContentEdit(ReplApplication):
|
|||
contents += [content for backend, content in self.do('get_content', _id, backends=backend_names) if content]
|
||||
|
||||
if len(contents) == 0:
|
||||
print >>sys.stderr, 'No content for the ID "%s"' % id
|
||||
print >>sys.stderr, 'No contents found'
|
||||
return 1
|
||||
|
||||
paths = {}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,13 @@ class ReplApplication(Cmd, BaseApplication):
|
|||
|
||||
def __init__(self):
|
||||
Cmd.__init__(self)
|
||||
self.prompt = self.BOLD + '%s> ' % self.APPNAME + self.NC
|
||||
# XXX can't use bold prompt because:
|
||||
# 1. it causes problems when trying to get history (lines don't start
|
||||
# at the right place).
|
||||
# 2. when typing a line longer than term width, cursor goes at start
|
||||
# of the same line instead of new line.
|
||||
#self.prompt = self.BOLD + '%s> ' % self.APPNAME + self.NC
|
||||
self.prompt = '%s> ' % self.APPNAME
|
||||
self.intro = '\n'.join(('Welcome to %s%s%s v%s' % (self.BOLD, self.APPNAME, self.NC, self.VERSION),
|
||||
'',
|
||||
'%s' % self.COPYRIGHT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue