def __init__(self, p):
super(readkbd, self).__init__(p)
self.prompt = p
self.controlc = None
# we want readline completer to give us the "/" as well!
readline.set_completer_delims( readline.get_completer_delims().replace("/", "").replace("-","") )
print "+++++++++++++++++++++ Welcome to cli +++++++++++++++++++"
print "$Id: command.py,v 1.16 2015-11-04 13:30:10 jive_cc Exp $"
print " 'exit' exits, 'list' lists, 'help' helps "
# add the iterator protocol (the context protocol is supplied by newhistory)
评论列表
文章目录