culour.py 文件源码

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

项目:culour 作者: shohamp 项目源码 文件源码
def _inner_addstr(window, string, y=-1, x=-1):
    assert curses.has_colors(), "Curses wasn't configured to support colors. Call curses.start_color()"

    cur_y, cur_x = window.getyx()
    if y == -1:
        y = cur_y
    if x == -1:
        x = cur_x
    for line in string.split(os.linesep):
        _add_line(y, x, window, line)
        # next line
        y += 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号