def set_font(name, *args): sys.stdout.write( ANSI.get('csi') + ANSI_SGR.get('foreground color') + ANSI_COLOR.get(name, *args) + ANSI_CSI.get('select graphic rendition'))
def up(moves): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('up', moves) + ANSI_CSI.get('cursor up'))
def set_bright_bg(name): sys.stdout.write( ANSI.get('csi') + ANSI_SGR.get('bright background color') + ANSI_COLOR.get(name) + ANSI_CSI.get('select graphic rendition'))
def column(column=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('horizontal absolute', column) + ANSI_CSI.get('cursor horizontal absolute'))
def position(row=1, column=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('position', row, column) + ANSI_CSI.get('cursor position'))
def previous_line(moves=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('previous line', moves) + ANSI_CSI.get('cursor previous line'))
def next_line(moves=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('next line', moves) + ANSI_CSI.get('cursor next line'))
def back(moves=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('back', moves) + ANSI_CSI.get('cursor back'))
def forward(moves=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('forward', moves) + ANSI_CSI.get('cursor forward'))
def down(moves=1): sys.stdout.write( ANSI.get('csi') + ANSI_CURSOR.get('down', moves) + ANSI_CSI.get('cursor down'))