Exemplo n.º 1
0
 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'))
Exemplo n.º 2
0
 def up(moves):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('up', moves) +
         ANSI_CSI.get('cursor up'))
Exemplo n.º 3
0
 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'))
Exemplo n.º 4
0
 def column(column=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('horizontal absolute', column) +
         ANSI_CSI.get('cursor horizontal absolute'))
Exemplo n.º 5
0
 def position(row=1, column=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('position', row, column) +
         ANSI_CSI.get('cursor position'))
Exemplo n.º 6
0
 def previous_line(moves=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('previous line', moves) +
         ANSI_CSI.get('cursor previous line'))
Exemplo n.º 7
0
 def next_line(moves=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('next line', moves) +
         ANSI_CSI.get('cursor next line'))
Exemplo n.º 8
0
 def back(moves=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('back', moves) +
         ANSI_CSI.get('cursor back'))
Exemplo n.º 9
0
 def forward(moves=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('forward', moves) +
         ANSI_CSI.get('cursor forward'))
Exemplo n.º 10
0
 def down(moves=1):
     sys.stdout.write(
         ANSI.get('csi') + ANSI_CURSOR.get('down', moves) +
         ANSI_CSI.get('cursor down'))