示例#1
0
def getBar(text, moveCursor=False):
    global lastPosition
    global terminalSize
    renderString = ""
    if moveCursor:
        renderString += tf.cursor(to={"row": lastPosition[1] + 1, "column": 1})
    renderString += tf.style(reset=True)
    renderString += tf.style(italic=True, invert=True, bold=True)
    renderString += tf.clearer(line=True)
    renderString += f.cutString(text, terminalSize["columns"])
    renderString += tf.style(reset=True)

    return renderString