def read_stdin():
while True:
try:
if get_variable('HISTORY'):
fileHistory = FileHistory(get_variable('HISTORY'))
else:
fileHistory = None
line = prompt(program + " > ", history=fileHistory, completer=CommandCompleter())
process_line(line)
except EOFError:
break
评论列表
文章目录