def process(self):
""" Run the interactive shell after displaying the software version information
@raise SystemExit
"""
self._display_banner()
while 1:
try:
self.cmdloop()
except kbd_exception.CtrlD:
signal.signal(signal.SIGINT, signal.SIG_DFL)
return
except kbd_exception.CtrlC:
# cancel the current line and get a new one
pass
评论列表
文章目录