printtools/print.py
def render(s, *args):
    """Render text with color and font."""
    mods = "".join([__esc(i) for i in args if type(i) == int])
    s = mods + __pf_render(s, __get_font(args))

    # Remove trailing newline
    if len(s) > 0 and s[-1] == '\n':
        s = s[:-1]

    # Add escape
    return s + __esc(0)
Render text with color and font.
Render text with color and font.
Render text with color and font .
def render(s, *args):
    mods = "".join([__esc(i) for i in args if type(i) == int])
    s = mods + __pf_render(s, __get_font(args))
    if len(s) > 0 and s[-1] == '\n':
        s = s[:-1]
    return s + __esc(0)
def render ( s , * args ) : mods = "" . join ( [ __esc ( i ) for i in args if type ( i ) == int ] ) s = mods + __pf_render ( s , __get_font ( args ) ) if len ( s ) > 0 and s [ - 1 ] == '\n' : s = s [ : - 1 ] return s + __esc ( 0 )
Render text with color and font.
Render text with color and font .
"""Render text with color and font.""" # Remove trailing newline # Add escape
s