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)
评论列表
文章目录