ci_program.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:ci_edit 作者: google 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号