zmqchat.py 文件源码

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

项目:zmq-chat 作者: jnthnwn 项目源码 文件源码
def start_top_window(window, display):
    window_lines, window_cols = window.getmaxyx()
    bottom_line = window_lines - 1
    window.bkgd(curses.A_NORMAL, curses.color_pair(2))
    window.scrollok(1)
    while True:
        # alternate color pair used to visually check how frequently this loop runs
        # to tell when user input is blocking
        window.addstr(bottom_line, 1, display.recv_string())
        window.move(bottom_line, 1)
        window.scroll(1)
        window.refresh()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号