def run_ci():
locale.setlocale(locale.LC_ALL, '')
try:
# Reduce the delay waiting for escape sequences.
os.environ.setdefault('ESCDELAY', '1')
curses.wrapper(wrapped_ci)
finally:
app.log.flush()
app.log.writeToFile('~/.ci_edit/recentLog')
# Disable Bracketed Paste Mode.
sys.stdout.write('\033[?2004l\n')
global userConsoleMessage
if userConsoleMessage:
fullPath = os.path.expanduser(os.path.expandvars(
'~/.ci_edit/userConsoleMessage'))
with io.open(fullPath, 'w+') as f:
f.write(userConsoleMessage)
sys.stdout.write(userConsoleMessage + '\n')
评论列表
文章目录