asciibleed.py 文件源码

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

项目:kanna 作者: metatoaster 项目源码 文件源码
def _bleed_row(line, row, col_start):
    counter = col_start
    for fragment in re.split('( +)', line):
        if not fragment:
            continue
        if fragment[0] != ' ':
            start = tparm(tigetstr("cup"), row, counter).decode('ascii')
            # print up to the maximum amount of cols.
            chars = max(0, get_width() - counter)
            sys.stdout.write(start + fragment[:chars])

        counter += len(fragment)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号