Exemple #1
0
# Imports
from terminfo import TerminalModule

# Terminal: Mach Console with bold instead of underline
TerminalModule(['mach_bold'],
               use=['mach'],
               exit_underline_mode=b'\x1b[0m',
               enter_underline_mode=b'\x1b[1m')
Exemple #2
0
# Imports
from terminfo import TerminalModule

# Terminal: xterm with 16 colors like aixterm
TerminalModule(['xterm_16color'], use=['xterm'], can_change=True, initialize_color=b'\x1b]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\x1b\\', orig_colors=b'\x1b]104\x07', reset_1string=b'\x1bc\x1b]104\x07', max_colors=16, max_pairs=256, set_a_background=b'\x1b[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm', set_a_foreground=b'\x1b[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm', set_background=b'%p1%{8}%/%{6}%*%{4}%+\x1b[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m', set_foreground=b'%p1%{8}%/%{6}%*%{3}%+\x1b[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m')
Exemple #3
0
TerminalModule(
    ['screen'],
    use=[],
    backspaces_with_bs=True,
    has_hardware_tabs=True,
    auto_right_margin=True,
    has_meta_key=True,
    move_insert_mode=True,
    move_standout_mode=True,
    eat_newline_glitch=True,
    G0=True,
    max_colors=8,
    columns=80,
    init_tabs=8,
    lines=24,
    no_color_video=None,
    max_pairs=64,
    U8=1,
    acs_chars=
    b'++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    bell=b'\x07',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    back_tab=b'\x1b[Z',
    cursor_invisible=b'\x1b[?25l',
    clear_screen=b'\x1b[H\x1b[J',
    cursor_normal=b'\x1b[34h\x1b[?25h',
    carriage_return=b'\r',
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1bM',
    cursor_visible=b'\x1b[34l',
    parm_dch=b'\x1b[%p1%dP',
    delete_character=b'\x1b[P',
    enter_dim_mode=b'\x1b[2m',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    clr_bol=b'\x1b[1K',
    ena_acs=b'\x1b(B\x1b)0',
    flash_screen=b'\x1bg',
    cursor_home=b'\x1b[H',
    column_address=b'\x1b[%i%p1%dG',
    tab=b'\t',
    set_tab=b'\x1bH',
    parm_ich=b'\x1b[%p1%d@',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    parm_index=b'\x1b[%p1%dS',
    init_2string=b'\x1b)0',
    key_backspace=b'\x08',
    key_btab=b'\x1b[Z',
    key_left=b'\x1bOD',
    key_down=b'\x1bOB',
    key_right=b'\x1bOC',
    key_up=b'\x1bOA',
    key_f1=b'\x1bOP',
    key_f10=b'\x1b[21~',
    key_f11=b'\x1b[23~',
    key_f12=b'\x1b[24~',
    key_f2=b'\x1bOQ',
    key_f3=b'\x1bOR',
    key_f4=b'\x1bOS',
    key_f5=b'\x1b[15~',
    key_f6=b'\x1b[17~',
    key_f7=b'\x1b[18~',
    key_f8=b'\x1b[19~',
    key_f9=b'\x1b[20~',
    key_mouse=b'\x1b[M',
    newline=b'\x1bE',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1bM',
    exit_alt_charset_mode=b'\x0f',
    exit_insert_mode=b'\x1b[4l',
    keypad_local=b'\x1b[?1l\x1b>',
    exit_standout_mode=b'\x1b[23m',
    exit_underline_mode=b'\x1b[24m',
    reset_2string=b'\x1bc\x1b[?1000l\x1b[?25h',
    save_cursor=b'\x1b7',
    set_attributes=
    b'\x1b[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;m%?%p9%t\x0e%e\x0f%;',
    exit_attribute_mode=b'\x1b[m\x0f',
    enter_alt_charset_mode=b'\x0e',
    enter_insert_mode=b'\x1b[4h',
    keypad_xmit=b'\x1b[?1h\x1b=',
    enter_standout_mode=b'\x1b[3m',
    enter_underline_mode=b'\x1b[4m',
    clear_all_tabs=b'\x1b[3g',
    row_address=b'\x1b[%i%p1%dd',
    E0=b'\x1b(B',
    S0=b'\x1b(%p1%c',
    user8=b'\x1b[?1;2c',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user9=b'\x1b[c',
    AX=True,
    orig_pair=b'\x1b[39;49m',
    set_a_background=b'\x1b[4%p1%dm',
    set_a_foreground=b'\x1b[3%p1%dm',
    exit_ca_mode=b'\x1b[?1049l',
    enter_ca_mode=b'\x1b[?1049h',
    key_dc=b'\x1b[3~',
    key_end=b'\x1b[4~',
    key_home=b'\x1b[1~',
    key_ic=b'\x1b[2~',
    key_npage=b'\x1b[6~',
    key_ppage=b'\x1b[5~',
    parm_rindex=b'\x1b[%p1%dT')
Exemple #4
0
# Imports
from terminfo import TerminalModule

# Terminal: VT 100/ANSI X3.64 virtual terminal with bce
TerminalModule(['screen_bce'],
               use=['screen'],
               back_color_erase=True,
               erase_chars=None)
Exemple #5
0
# Imports
from terminfo import TerminalModule

# Terminal: NetBSD wscons in 25 line DEC VT220 mode with Meta
TerminalModule(['wsvt25m'], use=['wsvt25'], has_meta_key=True)
Exemple #6
0
# Imports
from terminfo import TerminalModule

# Terminal: dec vt102
TerminalModule(['vt102'],
               use=['vt100'],
               delete_character=b'\x1b[P',
               delete_line=b'\x1b[M',
               insert_line=b'\x1b[L',
               exit_insert_mode=b'\x1b[4l',
               enter_insert_mode=b'\x1b[4h')
Exemple #7
0
# Imports
from terminfo import TerminalModule

# Terminal: The GNU Hurd console server
TerminalModule(['hurd'], use=[], auto_right_margin=True, back_color_erase=True, auto_left_margin=True, erase_overstrike=True, has_meta_key=True, move_insert_mode=True, move_standout_mode=True, eat_newline_glitch=True, xon_xoff=True, max_colors=8, init_tabs=8, no_color_video=18, max_pairs=64, acs_chars=b'++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~', bell=b'\x07', enter_blink_mode=b'\x1b[5m', enter_bold_mode=b'\x1b[1m', back_tab=b'\x1b[Z', clear_screen=b'\x1bc', carriage_return=b'\r', change_scroll_region=b'\x1b[%i%p1%d;%p2%dr', parm_left_cursor=b'\x1b[%p1%dD', cursor_left=b'\x08', parm_down_cursor=b'\x1b[%p1%dB', cursor_down=b'\x1b[B', parm_right_cursor=b'\x1b[%p1%dC', cursor_right=b'\x1b[C', cursor_address=b'\x1b[%i%p1%d;%p2%dH', parm_up_cursor=b'\x1b[%p1%dA', cursor_up=b'\x1b[A', cursor_visible=b'\x1b[34l', parm_dch=b'\x1b[%p1%dP', delete_character=b'\x1b[P', enter_dim_mode=b'\x1b[2m', parm_delete_line=b'\x1b[%p1%dM', delete_line=b'\x1b[M', erase_chars=b'\x1b[%p1%dX', clr_eos=b'\x1b[J', clr_eol=b'\x1b[K', clr_bol=b'\x1b[1K', flash_screen=b'\x1bg', cursor_home=b'\x1b[H', column_address=b'\x1b[%i%p1%dG', tab=b'\t', parm_ich=b'\x1b[%p1%d@', parm_insert_line=b'\x1b[%p1%dL', insert_line=b'\x1b[L', scroll_forward=b'\x1b[S', enter_secure_mode=b'\x1b[8m', key_b2=b'\x1b[G', key_backspace=b'', key_btab=b'\x1b[Z', key_left=b'\x1bOD', key_down=b'\x1bOB', key_right=b'\x1bOC', key_up=b'\x1bOA', key_f1=b'\x1bOP', key_f10=b'\x1b[21~', key_f11=b'\x1b[23~', key_f12=b'\x1b[24~', key_f13=b'\x1b[25~', key_f14=b'\x1b[26~', key_f15=b'\x1b[28~', key_f16=b'\x1b[29~', key_f17=b'\x1b[31~', key_f18=b'\x1b[32~', key_f19=b'\x1b[33~', key_f2=b'\x1bOQ', key_f20=b'\x1b[34~', key_f3=b'\x1bOR', key_f4=b'\x1bOS', key_f5=b'\x1b[15~', key_f6=b'\x1b[17~', key_f7=b'\x1b[18~', key_f8=b'\x1b[19~', key_f9=b'\x1b[20~', key_ic=b'\x1b[2~', key_mouse=b'\x1b[M', key_suspend=b'\x1a', newline=b'\r\n', orig_pair=b'\x1b[39;49m', restore_cursor=b'\x1b8', enter_reverse_mode=b'\x1b[7m', scroll_reverse=b'\x1b[T', exit_alt_charset_mode=b'\x1b[10m', exit_insert_mode=b'\x1b[4l', exit_standout_mode=b'\x1b[27m', exit_underline_mode=b'\x1b[24m', reset_1string=b'\x1bM\x1b[?1000l', save_cursor=b'\x1b7', set_a_background=b'\x1b[4%p1%dm', set_a_foreground=b'\x1b[3%p1%dm', set_attributes=b'\x1b[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m', exit_attribute_mode=b'\x1b[0m', enter_alt_charset_mode=b'\x1b[11m', enter_insert_mode=b'\x1b[4h', enter_standout_mode=b'\x1b[7m', enter_underline_mode=b'\x1b[4m', row_address=b'\x1b[%i%p1%dd', exit_real_bold=b'\x1b[>1l', enter_real_bold=b'\x1b[>1h', cursor_invisible=b'\x1b[?25l', cursor_normal=b'\x1b[?25h', exit_italics_mode=b'\x1b[23m', enter_italics_mode=b'\x1b[3m', parm_index=b'\x1b[%p1%dS', parm_rindex=b'\x1b[%p1%dT', key_dc=b'\x1b[3~', key_end=b'\x1b[4~', key_home=b'\x1b[1~', key_npage=b'\x1b[6~', key_ppage=b'\x1b[5~')
Exemple #8
0
# Imports
from terminfo import TerminalModule

# Terminal: rxvt terminal emulator (X Window System)
TerminalModule(['rxvt'],
               use=['rxvt_basic'],
               no_color_video=None,
               column_address=b'\x1b[%i%p1%dG',
               key_f0=b'\x1b[21~',
               exit_attribute_mode=b'\x1b[m\x0f',
               row_address=b'\x1b[%i%p1%dd',
               AX=True,
               max_colors=8,
               max_pairs=64,
               orig_pair=b'\x1b[39;49m',
               set_a_background=b'\x1b[4%p1%dm',
               set_a_foreground=b'\x1b[3%p1%dm')
Exemple #9
0
TerminalModule(['mach'],
               use=[],
               auto_right_margin=True,
               has_meta_key=True,
               columns=80,
               init_tabs=8,
               lines=25,
               bell=b'\x07',
               enter_blink_mode=b'\x1b[5m',
               enter_bold_mode=b'\x1b[1m',
               clear_screen=b'\x1bc',
               carriage_return=b'\r',
               parm_left_cursor=b'\x1b[%p1%dD',
               cursor_left=b'\x08',
               parm_down_cursor=b'\x1b[%p1%dB',
               cursor_down=b'\n',
               parm_right_cursor=b'\x1b[%p1%dC',
               cursor_right=b'\x1b[C',
               cursor_address=b'\x1b[%i%p1%d;%p2%dH',
               parm_up_cursor=b'\x1b[%p1%dA',
               cursor_up=b'\x1b[A',
               parm_delete_line=b'\x1b[%p1%dM',
               delete_line=b'\x1b[M',
               clr_eos=b'\x1b[J',
               clr_eol=b'\x1b[K',
               cursor_home=b'\x1b[H',
               tab=b'\t',
               parm_insert_line=b'\x1b[%p1%dL',
               insert_line=b'\x1b[L',
               scroll_forward=b'\n',
               key_backspace=b'',
               key_left=b'\x1b[D',
               key_down=b'\x1b[B',
               key_right=b'\x1b[C',
               key_up=b'\x1b[A',
               key_dc=b'\x1b[9',
               key_end=b'\x1b[Y',
               key_f1=b'\x1bOP',
               key_f10=b'\x1bOY',
               key_f2=b'\x1bOQ',
               key_f3=b'\x1bOR',
               key_f4=b'\x1bOS',
               key_f5=b'\x1bOT',
               key_f6=b'\x1bOU',
               key_f7=b'\x1bOV',
               key_f8=b'\x1bOW',
               key_f9=b'\x1bOX',
               key_home=b'\x1b[H',
               key_ic=b'\x1b[@',
               key_ll=b'\x1b[F',
               key_npage=b'\x1b[U',
               key_ppage=b'\x1b[V',
               enter_reverse_mode=b'\x1b[7m',
               exit_standout_mode=b'\x1b[0m',
               exit_underline_mode=b'\x1b[24m',
               exit_attribute_mode=b'\x1b[0m',
               enter_standout_mode=b'\x1b[7m',
               enter_underline_mode=b'\x1b[4m')
Exemple #10
0
TerminalModule(
    ['ansi'],
    use=[],
    prtr_silent=True,
    parm_left_cursor=b'\x1b[%p1%dD',
    parm_down_cursor=b'\x1b[%p1%dB',
    parm_right_cursor=b'\x1b[%p1%dC',
    parm_up_cursor=b'\x1b[%p1%dA',
    parm_dch=b'\x1b[%p1%dP',
    parm_delete_line=b'\x1b[%p1%dM',
    erase_chars=b'\x1b[%p1%dX',
    clr_bol=b'\x1b[1K',
    column_address=b'\x1b[%i%p1%dG',
    tab=b'\x1b[I',
    parm_ich=b'\x1b[%p1%d@',
    parm_insert_line=b'\x1b[%p1%dL',
    key_backspace=b'\x08',
    key_btab=b'\x1b[Z',
    key_left=b'\x1b[D',
    key_down=b'\x1b[B',
    key_right=b'\x1b[C',
    key_up=b'\x1b[A',
    key_ic=b'\x1b[L',
    prtr_off=b'\x1b[4i',
    prtr_on=b'\x1b[5i',
    newline=b'\r\x1b[S',
    repeat_char=b'%p1%c\x1b[%p2%{1}%-%db',
    set0_des_seq=b'\x1b(B',
    set1_des_seq=b'\x1b)B',
    set2_des_seq=b'\x1b*B',
    set3_des_seq=b'\x1b+B',
    clear_all_tabs=b'\x1b[3g',
    row_address=b'\x1b[%i%p1%dd',
    backspaces_with_bs=True,
    auto_right_margin=True,
    move_insert_mode=True,
    move_standout_mode=True,
    columns=80,
    init_tabs=8,
    lines=24,
    bell=b'\x07',
    back_tab=b'\x1b[Z',
    clear_screen=b'\x1b[H\x1b[J',
    carriage_return=b'\r',
    cursor_left=b'\x1b[D',
    cursor_down=b'\x1b[B',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    cursor_up=b'\x1b[A',
    delete_character=b'\x1b[P',
    delete_line=b'\x1b[M',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    cursor_home=b'\x1b[H',
    set_tab=b'\x1bH',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    key_home=b'\x1b[H',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    enter_secure_mode=b'\x1b[8m',
    enter_reverse_mode=b'\x1b[7m',
    exit_standout_mode=b'\x1b[m',
    exit_underline_mode=b'\x1b[m',
    set_attributes=
    b'\x1b[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m',
    exit_attribute_mode=b'\x1b[0;10m',
    enter_alt_charset_mode=b'\x1b[11m',
    enter_standout_mode=b'\x1b[7m',
    enter_underline_mode=b'\x1b[4m',
    acs_chars=
    b'+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe',
    exit_alt_charset_mode=b'\x1b[10m',
    parm_index=b'\x1b[%p1%dS',
    parm_rindex=b'\x1b[%p1%dT',
    exit_pc_charset_mode=b'\x1b[10m',
    enter_pc_charset_mode=b'\x1b[11m',
    AX=True,
    max_colors=8,
    no_color_video=3,
    max_pairs=64,
    orig_pair=b'\x1b[39;49m',
    set_a_background=b'\x1b[4%p1%dm',
    set_a_foreground=b'\x1b[3%p1%dm',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user8=b'\x1b[?%[;0123456789]c',
    user9=b'\x1b[c')
Exemple #11
0
# Imports
from terminfo import TerminalModule

# Terminal: xterm with 256 colors
TerminalModule(
    ['xterm_256color'],
    use=['xterm'],
    orig_colors=b'\x1b]104\x07',
    reset_1string=b'\x1bc\x1b]104\x07',
    can_change=True,
    max_colors=256,
    max_pairs=65536,
    initialize_color=
    b'\x1b]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\x1b\\',
    set_a_background=
    b'\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m',
    set_a_foreground=
    b'\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m',
    set_background=None,
    set_foreground=None)
Exemple #12
0
# Imports
from terminfo import TerminalModule

# Terminal: AppKit Terminal.app
TerminalModule(['nsterm', 'nsterm_256color'], use=[], exit_standout_mode=b'\x1b[27m', exit_underline_mode=b'\x1b[24m', XT=True, key_mouse=b'\x1b[<', key_end=b'\x1bOF', key_home=b'\x1bOH', key_sdc=b'\x1b[3;2~', key_sleft=b'\x1b[1;2D', key_sright=b'\x1b[1;2C', key_btab=b'\x1b[Z', key_f18=b'\x1b[32~', key_sdc5=b'\x1b[3;5~', key_sleft3=b'\x1bb', key_sleft5=b'\x1b[1;5D', key_sright3=b'\x1bf', key_sright5=b'\x1b[1;5C', back_color_erase=True, auto_left_margin=None, move_insert_mode=True, no_pad_char=True, parm_dch=b'\x1b[%p1%dP', delete_character=b'\x1b[P', flash_screen=b'\x1b[?5h$<200/>\x1b[?5l', column_address=b'\x1b[%i%p1%dG', parm_ich=b'\x1b[%p1%d@', insert_character=b'\x1b[@', key_dc=b'\x1b[3~', key_f10=b'\x1b[21~', key_f11=b'\x1b[23~', key_f12=b'\x1b[24~', key_f13=b'\x1b[25~', key_f14=b'\x1b[26~', key_f15=b'\x1b[28~', key_f16=b'\x1b[29~', key_f17=b'\x1b[31~', key_f19=b'\x1b[33~', key_f20=b'\x1b[34~', key_f5=b'\x1b[15~', key_f6=b'\x1b[17~', key_f7=b'\x1b[18~', key_f8=b'\x1b[19~', key_f9=b'\x1b[20~', key_npage=b'\x1b[6~', key_ppage=b'\x1b[5~', exit_ca_mode=b'\x1b[2J\x1b[?47l\x1b8', exit_insert_mode=b'\x1b[4l', enter_ca_mode=b'\x1b7\x1b[?47h', enter_insert_mode=b'\x1b[4h', row_address=b'\x1b[%i%p1%dd', cursor_invisible=b'\x1b[?25l', cursor_normal=b'\x1b[?25h', acs_chars=b'``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~', ena_acs=b'\x1b(B\x1b)0', exit_alt_charset_mode=b'\x0f', set_attributes=b'\x1b[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p9%t\x0e%e\x0f%;', exit_attribute_mode=b'\x1b[m\x0f', enter_alt_charset_mode=b'\x0e', auto_right_margin=True, move_standout_mode=True, eat_newline_glitch=True, xon_xoff=True, columns=80, init_tabs=8, lines=24, bell=b'\x07', enter_blink_mode=b'\x1b[5m', enter_bold_mode=b'\x1b[1m', clear_screen=b'\x1b[H\x1b[J', carriage_return=b'\r', change_scroll_region=b'\x1b[%i%p1%d;%p2%dr', parm_left_cursor=b'\x1b[%p1%dD', cursor_left=b'\x08', parm_down_cursor=b'\x1b[%p1%dB', cursor_down=b'\n', parm_right_cursor=b'\x1b[%p1%dC', cursor_right=b'\x1b[C', cursor_address=b'\x1b[%i%p1%d;%p2%dH', parm_up_cursor=b'\x1b[%p1%dA', cursor_up=b'\x1b[A', enter_dim_mode=b'\x1b[2m', parm_delete_line=b'\x1b[%p1%dM', delete_line=b'\x1b[M', clr_eos=b'\x1b[J', clr_eol=b'\x1b[K', clr_bol=b'\x1b[1K', cursor_home=b'\x1b[H', tab=b'\t', set_tab=b'\x1bH', parm_insert_line=b'\x1b[%p1%dL', insert_line=b'\x1b[L', scroll_forward=b'\n', enter_secure_mode=b'\x1b[8m', key_backspace=b'', key_left=b'\x1bOD', key_down=b'\x1bOB', key_right=b'\x1bOC', key_up=b'\x1bOA', key_enter=b'\x1bOM', restore_cursor=b'\x1b8', enter_reverse_mode=b'\x1b[7m', scroll_reverse=b'\x1bM', exit_am_mode=b'\x1b[?7l', keypad_local=b'\x1b[?1l\x1b>', reset_2string=b'\x1b>\x1b[?3l\x1b[?4l\x1b[?5l\x1b[?7h\x1b[?8h', save_cursor=b'\x1b7', enter_am_mode=b'\x1b[?7h', keypad_xmit=b'\x1b[?1h\x1b=', enter_standout_mode=b'\x1b[7m', enter_underline_mode=b'\x1b[4m', clear_all_tabs=b'\x1b[3g', key_f1=b'\x1bOP', key_f2=b'\x1bOQ', key_f3=b'\x1bOR', key_f4=b'\x1bOS', key_a1=b'\x1bOq', key_a3=b'\x1bOs', key_b2=b'\x1bOr', key_c1=b'\x1bOp', key_c3=b'\x1bOn', user8=b'\x1b[?1;2c', user6=b'\x1b[%i%d;%dR', user7=b'\x1b[6n', user9=b'\x1b[c', orig_pair=b'\x1b[39;49m', max_colors=256, max_pairs=65536, set_a_background=b'\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m', set_a_foreground=b'\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m', set_background=None, set_foreground=None, width_status_line=50, has_status_line=True, dis_status_line=b'\x1b]2;\x07', from_status_line=b'\x07', to_status_line=b'\x1b]2;', TS=b'\x1b]2;', can_change=None, initialize_color=None, exit_italics_mode=b'\x1b[23m', enter_italics_mode=b'\x1b[3m', XM=b'\x1b[?1006;1000%?%p1%{1}%=%th%el%;', xm=b'\x1b[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;')
Exemple #13
0
TerminalModule(
    ['pcansi'],
    use=[],
    backspaces_with_bs=True,
    auto_right_margin=True,
    move_insert_mode=True,
    move_standout_mode=True,
    columns=80,
    init_tabs=8,
    lines=24,
    bell=b'\x07',
    back_tab=b'\x1b[Z',
    clear_screen=b'\x1b[H\x1b[J',
    carriage_return=b'\r',
    cursor_left=b'\x1b[D',
    cursor_down=b'\x1b[B',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    cursor_up=b'\x1b[A',
    delete_character=b'\x1b[P',
    delete_line=b'\x1b[M',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    cursor_home=b'\x1b[H',
    tab=b'\t',
    set_tab=b'\x1bH',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    key_backspace=b'\x08',
    key_left=b'\x1b[D',
    key_down=b'\x1b[B',
    key_right=b'\x1b[C',
    key_up=b'\x1b[A',
    key_home=b'\x1b[H',
    clear_all_tabs=b'\x1b[3g',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    enter_secure_mode=b'\x1b[8m',
    enter_reverse_mode=b'\x1b[7m',
    exit_standout_mode=b'\x1b[m',
    exit_underline_mode=b'\x1b[m',
    set_attributes=
    b'\x1b[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m',
    exit_attribute_mode=b'\x1b[0;10m',
    enter_alt_charset_mode=b'\x1b[12m',
    enter_standout_mode=b'\x1b[7m',
    enter_underline_mode=b'\x1b[4m',
    acs_chars=
    b'+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe',
    exit_alt_charset_mode=b'\x1b[10m',
    max_colors=8,
    no_color_video=3,
    max_pairs=64,
    orig_pair=b'\x1b[37;40m',
    set_a_background=b'\x1b[4%p1%dm',
    set_a_foreground=b'\x1b[3%p1%dm')
Exemple #14
0
TerminalModule(
    ['rxvt_basic'],
    use=[],
    backspaces_with_bs=True,
    auto_right_margin=True,
    back_color_erase=True,
    erase_overstrike=True,
    move_insert_mode=True,
    move_standout_mode=True,
    eat_newline_glitch=True,
    xon_xoff=True,
    XT=True,
    columns=80,
    init_tabs=8,
    lines=24,
    acs_chars=b'``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    bell=b'\x07',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    clear_screen=b'\x1b[H\x1b[2J',
    carriage_return=b'\r',
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    clr_bol=b'\x1b[1K',
    ena_acs=b'\x1b(B\x1b)0',
    flash_screen=b'\x1b[?5h$<100/>\x1b[?5l',
    cursor_home=b'\x1b[H',
    tab=b'\t',
    set_tab=b'\x1bH',
    parm_ich=b'\x1b[%p1%d@',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    init_1string=b'\x1b[?47l\x1b=\x1b[?1l',
    init_2string=b'\x1b[r\x1b[m\x1b[2J\x1b[H\x1b[?7h\x1b[?1;3;4;6l\x1b[4l',
    key_backspace=b'\x08',
    key_btab=b'\x1b[Z',
    key_mouse=b'\x1b[M',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1bM',
    exit_alt_charset_mode=b'\x0f',
    exit_ca_mode=b'\x1b[2J\x1b[?47l\x1b8',
    exit_insert_mode=b'\x1b[4l',
    keypad_local=b'\x1b>',
    exit_standout_mode=b'\x1b[27m',
    exit_underline_mode=b'\x1b[24m',
    reset_1string=b'\x1b>\x1b[1;3;4;5;6l\x1b[?7h\x1b[m\x1b[r\x1b[2J\x1b[H',
    reset_2string=
    b'\x1b[r\x1b[m\x1b[2J\x1b[H\x1b[?7h\x1b[?1;3;4;6l\x1b[4l\x1b>\x1b[?1000l\x1b[?25h',
    set0_des_seq=b'\x1b(B',
    set1_des_seq=b'\x1b(0',
    save_cursor=b'\x1b7',
    set_attributes=
    b'\x1b[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\x0e%e\x0f%;',
    exit_attribute_mode=b'\x1b[0m\x0f',
    enter_alt_charset_mode=b'\x0e',
    enter_ca_mode=b'\x1b7\x1b[?47h',
    enter_insert_mode=b'\x1b[4h',
    keypad_xmit=b'\x1b=',
    enter_standout_mode=b'\x1b[7m',
    enter_underline_mode=b'\x1b[4m',
    clear_all_tabs=b'\x1b[3g',
    key_a1=b'\x1bOw',
    key_a3=b'\x1bOy',
    key_b2=b'\x1bOu',
    key_c1=b'\x1bOq',
    key_c3=b'\x1bOs',
    key_enter=b'\x1bOM',
    key_f1=b'\x1b[11~',
    key_f2=b'\x1b[12~',
    key_f3=b'\x1b[13~',
    key_f4=b'\x1b[14~',
    key_a2=b'\x1bOx',
    key_b1=b'\x1bOt',
    key_b3=b'\x1bOv',
    key_c2=b'\x1bOr',
    cursor_invisible=b'\x1b[?25l',
    cursor_normal=b'\x1b[?25h',
    key_sdc=b'\x1b[3$',
    key_send=b'\x1b[8$',
    key_shome=b'\x1b[7$',
    key_sic=b'\x1b[2$',
    key_sleft=b'\x1b[d',
    key_snext=b'\x1b[6$',
    key_sprevious=b'\x1b[5$',
    key_sright=b'\x1b[c',
    key_left=b'\x1b[D',
    key_down=b'\x1b[B',
    key_right=b'\x1b[C',
    key_up=b'\x1b[A',
    key_eol=b'\x1b[8^',
    key_end=b'\x1b[8~',
    key_f10=b'\x1b[21~',
    key_f11=b'\x1b[23~',
    key_f12=b'\x1b[24~',
    key_f13=b'\x1b[25~',
    key_f14=b'\x1b[26~',
    key_f15=b'\x1b[28~',
    key_f16=b'\x1b[29~',
    key_f17=b'\x1b[31~',
    key_f18=b'\x1b[32~',
    key_f19=b'\x1b[33~',
    key_f20=b'\x1b[34~',
    key_f21=b'\x1b[23$',
    key_f22=b'\x1b[24$',
    key_f23=b'\x1b[11^',
    key_f24=b'\x1b[12^',
    key_f25=b'\x1b[13^',
    key_f26=b'\x1b[14^',
    key_f27=b'\x1b[15^',
    key_f28=b'\x1b[17^',
    key_f29=b'\x1b[18^',
    key_f30=b'\x1b[19^',
    key_f31=b'\x1b[20^',
    key_f32=b'\x1b[21^',
    key_f33=b'\x1b[23^',
    key_f34=b'\x1b[24^',
    key_f35=b'\x1b[25^',
    key_f36=b'\x1b[26^',
    key_f37=b'\x1b[28^',
    key_f38=b'\x1b[29^',
    key_f39=b'\x1b[31^',
    key_f40=b'\x1b[32^',
    key_f41=b'\x1b[33^',
    key_f42=b'\x1b[34^',
    key_f43=b'\x1b[23@',
    key_f44=b'\x1b[24@',
    key_f5=b'\x1b[15~',
    key_f6=b'\x1b[17~',
    key_f7=b'\x1b[18~',
    key_f8=b'\x1b[19~',
    key_f9=b'\x1b[20~',
    key_home=b'\x1b[7~',
    key_sf=b'\x1b[a',
    key_sr=b'\x1b[b',
    key_sdc5=b'\x1b[3^',
    key_sdc6=b'\x1b[3@',
    key_sdown=b'\x1b[b',
    key_sdown5=b'\x1bOb',
    key_send5=b'\x1b[8^',
    key_send6=b'\x1b[8@',
    key_shome5=b'\x1b[7^',
    key_shome6=b'\x1b[7@',
    key_sic5=b'\x1b[2^',
    key_sic6=b'\x1b[2@',
    key_sleft5=b'\x1bOd',
    key_snext5=b'\x1b[6^',
    key_snext6=b'\x1b[6@',
    key_sprevious5=b'\x1b[5^',
    key_sprevious6=b'\x1b[5@',
    key_sright5=b'\x1bOc',
    key_sup=b'\x1b[a',
    key_sup5=b'\x1bOa',
    key_dc=b'\x1b[3~',
    key_find=b'\x1b[1~',
    key_ic=b'\x1b[2~',
    key_npage=b'\x1b[6~',
    key_ppage=b'\x1b[5~',
    key_select=b'\x1b[4~',
    user8=b'\x1b[?1;2c',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user9=b'\x1b[c')
Exemple #15
0
# Imports
from terminfo import TerminalModule

# Terminal: generic color xterm
TerminalModule(['xterm_color'], use=['xterm_r6'], no_color_video=None, orig_pair=b'\x1b[m', max_colors=8, max_pairs=64, set_a_background=b'\x1b[4%p1%dm', set_a_foreground=b'\x1b[3%p1%dm')
Exemple #16
0
TerminalModule(
    ['linux'],
    use=[],
    erase_saved_lines=b'\x1b[3J',
    acs_chars=
    b'++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    ena_acs=b'\x1b)0',
    exit_alt_charset_mode=b'\x0f',
    set_attributes=
    b'\x1b[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;m%?%p9%t\x0e%e\x0f%;',
    exit_attribute_mode=b'\x1b[m\x0f',
    enter_alt_charset_mode=b'\x0e',
    cursor_invisible=b'\x1b[?25l\x1b[?1c',
    cursor_normal=b'\x1b[?25h\x1b[?0c',
    cursor_visible=b'\x1b[?25h\x1b[?8c',
    can_change=True,
    initialize_color=
    b'\x1b]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x',
    orig_colors=b'\x1b]R',
    auto_right_margin=True,
    back_color_erase=True,
    erase_overstrike=True,
    move_insert_mode=True,
    move_standout_mode=True,
    eat_newline_glitch=True,
    xon_xoff=True,
    init_tabs=8,
    no_color_video=18,
    U8=1,
    bell=b'\x07',
    clear_screen=b'\x1b[H\x1b[J',
    carriage_return=b'\r',
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A',
    parm_dch=b'\x1b[%p1%dP',
    delete_character=b'\x1b[P',
    enter_dim_mode=b'\x1b[2m',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    erase_chars=b'\x1b[%p1%dX',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    clr_bol=b'\x1b[1K',
    flash_screen=b'\x1b[?5h$<200/>\x1b[?5l',
    cursor_home=b'\x1b[H',
    column_address=b'\x1b[%i%p1%dG',
    tab=b'\t',
    set_tab=b'\x1bH',
    parm_ich=b'\x1b[%p1%d@',
    insert_character=b'\x1b[@',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    key_b2=b'\x1b[G',
    key_backspace=b'',
    key_btab=b'\x1b[Z',
    key_left=b'\x1b[D',
    key_down=b'\x1b[B',
    key_right=b'\x1b[C',
    key_up=b'\x1b[A',
    key_f1=b'\x1b[[A',
    key_f10=b'\x1b[21~',
    key_f11=b'\x1b[23~',
    key_f12=b'\x1b[24~',
    key_f2=b'\x1b[[B',
    key_f3=b'\x1b[[C',
    key_f4=b'\x1b[[D',
    key_f5=b'\x1b[[E',
    key_f6=b'\x1b[17~',
    key_f7=b'\x1b[18~',
    key_f8=b'\x1b[19~',
    key_f9=b'\x1b[20~',
    key_mouse=b'\x1b[M',
    key_suspend=b'\x1a',
    newline=b'\r\n',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1bM',
    exit_am_mode=b'\x1b[?7l',
    exit_insert_mode=b'\x1b[4l',
    exit_standout_mode=b'\x1b[27m',
    exit_underline_mode=b'\x1b[24m',
    reset_1string=b'\x1bc\x1b]R',
    save_cursor=b'\x1b7',
    enter_am_mode=b'\x1b[?7h',
    enter_insert_mode=b'\x1b[4h',
    enter_underline_mode=b'\x1b[4m',
    clear_all_tabs=b'\x1b[3g',
    row_address=b'\x1b[%i%p1%dd',
    key_f13=b'\x1b[25~',
    key_f14=b'\x1b[26~',
    key_f15=b'\x1b[28~',
    key_f16=b'\x1b[29~',
    key_f17=b'\x1b[31~',
    key_f18=b'\x1b[32~',
    key_f19=b'\x1b[33~',
    key_f20=b'\x1b[34~',
    AX=True,
    max_colors=8,
    max_pairs=64,
    orig_pair=b'\x1b[39;49m',
    set_a_background=b'\x1b[4%p1%dm',
    set_a_foreground=b'\x1b[3%p1%dm',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    exit_pc_charset_mode=b'\x1b[10m',
    enter_pc_charset_mode=b'\x1b[11m',
    enter_standout_mode=b'\x1b[7m',
    user8=b'\x1b[?6c',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user9=b'\x1b[c',
    key_dc=b'\x1b[3~',
    key_end=b'\x1b[4~',
    key_home=b'\x1b[1~',
    key_ic=b'\x1b[2~',
    key_npage=b'\x1b[6~',
    key_ppage=b'\x1b[5~')
Exemple #17
0
# Imports
from terminfo import TerminalModule

# Terminal: dec vt52
TerminalModule(['vt52'], use=[], backspaces_with_bs=True, init_tabs=8, lines=24, acs_chars=b'+h.k0affggolpnqprrss', cursor_home=b'\x1bH', key_backspace=b'\x08', newline=b'\r\n', scroll_reverse=b'\x1bI', exit_alt_charset_mode=b'\x1bG', keypad_local=b'\x1b>', enter_alt_charset_mode=b'\x1bF', keypad_xmit=b'\x1b=', user8=b'\x1b/[KL]', cursor_left=b'\x1bD', cursor_down=b'\x1bB', cursor_address=b'\x1bY%p1%{32}%+%c%p2%{32}%+%c', key_left=b'\x1bD', key_down=b'\x1bB', key_right=b'\x1bC', key_up=b'\x1bA', columns=80, bell=b'\x07', clear_screen=b'\x1bH\x1bJ', carriage_return=b'\r', cursor_right=b'\x1bC', cursor_up=b'\x1bA', clr_eos=b'\x1bJ', clr_eol=b'\x1bK', tab=b'\t', scroll_forward=b'\n', user9=b'\x1bZ', key_a1=b'\x1b?q', key_a3=b'\x1b?s', key_b2=b'\x1b?r', key_c1=b'\x1b?p', key_c3=b'\x1b?n', key_f0=b'\x1b?y', key_f1=b'\x1bP', key_f2=b'\x1bQ', key_f3=b'\x1bR', key_f5=b'\x1b?t', key_f6=b'\x1b?u', key_f7=b'\x1b?v', key_f8=b'\x1b?w', key_f9=b'\x1b?x')
Exemple #18
0
# Imports
from terminfo import TerminalModule

# Terminal: Mach Console with ANSI color
TerminalModule(['mach_gnu_color'],
               use=['mach_gnu'],
               max_colors=8,
               max_pairs=64,
               orig_pair=b'\x1b[37;40m',
               exit_standout_mode=b'\x1b[27m',
               set_a_background=b'\x1b[4%p1%dm',
               set_a_foreground=b'\x1b[3%p1%dm')
Exemple #19
0
# Imports
from terminfo import TerminalModule

# Terminal: 80-column dumb tty
TerminalModule(['dumb'],
               use=[],
               auto_right_margin=True,
               columns=80,
               bell=b'\x07',
               carriage_return=b'\r',
               cursor_down=b'\n',
               scroll_forward=b'\n')
Exemple #20
0
# Terminal: NetBSD wscons in 25 line DEC VT220 mode
TerminalModule(['wsvt25'],
               use=['vt220'],
               back_color_erase=True,
               move_standout_mode=True,
               max_colors=8,
               columns=80,
               init_tabs=8,
               lines=25,
               no_color_video=2,
               max_pairs=64,
               init_2string=b'\x1b[r\x1b[25;1H',
               key_dc=b'\x1b[3~',
               key_end=b'\x1b[8~',
               key_f1=b'\x1b[11~',
               key_f10=b'\x1b[21~',
               key_f11=b'\x1b[23~',
               key_f12=b'\x1b[24~',
               key_f2=b'\x1b[12~',
               key_f3=b'\x1b[13~',
               key_f4=b'\x1b[14~',
               key_f5=b'\x1b[15~',
               key_f6=b'\x1b[17~',
               key_f7=b'\x1b[18~',
               key_f8=b'\x1b[19~',
               key_f9=b'\x1b[20~',
               key_home=b'\x1b[7~',
               orig_pair=b'\x1b[m',
               reset_1string=b'\x1bc',
               set_a_background=b'\x1b[4%p1%dm',
               set_a_foreground=b'\x1b[3%p1%dm')
Exemple #21
0
TerminalModule(
    ['cons25', 'ansi80x25'],
    use=[],
    acs_chars=
    b'-\x18.\x190\xdb`\x04a\xb0f\xf8g\xf1h\xb1i\x15j\xd9k\xbfl\xdam\xc0n\xc5q\xc4t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2~\xf9',
    auto_right_margin=True,
    back_color_erase=True,
    auto_left_margin=True,
    erase_overstrike=True,
    move_standout_mode=True,
    no_pad_char=True,
    max_colors=8,
    columns=80,
    init_tabs=8,
    lines=25,
    no_color_video=21,
    max_pairs=64,
    bell=b'\x07',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    back_tab=b'\x1b[Z',
    clear_screen=b'\x1b[H\x1b[J',
    cursor_normal=b'\x1b[=0C',
    carriage_return=b'\r',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\x1b[B',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A',
    cursor_visible=b'\x1b[=1C',
    parm_dch=b'\x1b[%p1%dP',
    delete_character=b'\x1b[P',
    enter_dim_mode=b'\x1b[30;1m',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    erase_chars=b'\x1b[%p1%dX',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    cursor_home=b'\x1b[H',
    column_address=b'\x1b[%i%p1%d`',
    tab=b'\t',
    parm_ich=b'\x1b[%p1%d@',
    insert_character=b'\x1b[@',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\x1b[S',
    key_b2=b'\x1b[E',
    key_backspace=b'\x08',
    key_btab=b'\x1b[Z',
    key_left=b'\x1b[D',
    key_down=b'\x1b[B',
    key_right=b'\x1b[C',
    key_up=b'\x1b[A',
    key_dc=b'',
    key_end=b'\x1b[F',
    key_f1=b'\x1b[M',
    key_f10=b'\x1b[V',
    key_f11=b'\x1b[W',
    key_f12=b'\x1b[X',
    key_f13=b'\x1b[Y',
    key_f14=b'\x1b[Z',
    key_f15=b'\x1b[a',
    key_f16=b'\x1b[b',
    key_f17=b'\x1b[c',
    key_f18=b'\x1b[d',
    key_f19=b'\x1b[e',
    key_f2=b'\x1b[N',
    key_f20=b'\x1b[f',
    key_f21=b'\x1b[g',
    key_f22=b'\x1b[h',
    key_f23=b'\x1b[i',
    key_f24=b'\x1b[j',
    key_f25=b'\x1b[k',
    key_f26=b'\x1b[l',
    key_f27=b'\x1b[m',
    key_f28=b'\x1b[n',
    key_f29=b'\x1b[o',
    key_f3=b'\x1b[O',
    key_f30=b'\x1b[p',
    key_f31=b'\x1b[q',
    key_f32=b'\x1b[r',
    key_f33=b'\x1b[s',
    key_f34=b'\x1b[t',
    key_f35=b'\x1b[u',
    key_f36=b'\x1b[v',
    key_f37=b'\x1b[w',
    key_f38=b'\x1b[x',
    key_f39=b'\x1b[y',
    key_f4=b'\x1b[P',
    key_f40=b'\x1b[z',
    key_f41=b'\x1b[@',
    key_f42=b'\x1b[[',
    key_f43=b'\x1b[\\',
    key_f44=b'\x1b[]',
    key_f45=b'\x1b[^',
    key_f46=b'\x1b[_',
    key_f47=b'\x1b[`',
    key_f48=b'\x1b[{',
    key_f5=b'\x1b[Q',
    key_f6=b'\x1b[R',
    key_f7=b'\x1b[S',
    key_f8=b'\x1b[T',
    key_f9=b'\x1b[U',
    key_home=b'\x1b[H',
    key_ic=b'\x1b[L',
    key_npage=b'\x1b[G',
    key_ppage=b'\x1b[I',
    newline=b'\x1b[E',
    orig_pair=b'\x1b[x',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1b[T',
    exit_standout_mode=b'\x1b[m',
    reset_2string=b'\x1b[x\x1b[m\x1bc',
    save_cursor=b'\x1b7',
    set_a_background=b'\x1b[4%p1%dm',
    set_a_foreground=b'\x1b[3%p1%dm',
    set_attributes=
    b'\x1b[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?%p6%t;1%;m',
    exit_attribute_mode=b'\x1b[m',
    enter_standout_mode=b'\x1b[7m',
    row_address=b'\x1b[%i%p1%dd',
    parm_index=b'\x1b[%p1%dS',
    parm_rindex=b'\x1b[%p1%dT')
Exemple #22
0
TerminalModule(
    ['vt220', 'vt200'],
    use=[],
    backspaces_with_bs=True,
    auto_right_margin=True,
    move_insert_mode=True,
    move_standout_mode=True,
    eat_newline_glitch=True,
    xon_xoff=True,
    columns=80,
    init_tabs=8,
    lines=24,
    virtual_terminal=3,
    acs_chars=b'``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    bell=b'\x07',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    clear_screen=b'\x1b[H\x1b[J',
    carriage_return=b'\r',
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A',
    parm_dch=b'\x1b[%p1%dP',
    delete_character=b'\x1b[P',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    erase_chars=b'\x1b[%p1%dX',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    clr_bol=b'\x1b[1K',
    ena_acs=b'\x1b)0',
    flash_screen=b'\x1b[?5h$<200/>\x1b[?5l',
    cursor_home=b'\x1b[H',
    tab=b'\t',
    set_tab=b'\x1bH',
    parm_ich=b'\x1b[%p1%d@',
    init_file=b'/usr/share/tabset/vt100',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\x1bD',
    init_2string=b'\x1b[?7h\x1b[>\x1b[?1l\x1b F\x1b[?4l',
    key_backspace=b'\x08',
    key_left=b'\x1b[D',
    key_down=b'\x1b[B',
    key_right=b'\x1b[C',
    key_up=b'\x1b[A',
    key_dc=b'\x1b[3~',
    key_f1=b'\x1bOP',
    key_f10=b'\x1b[21~',
    key_f11=b'\x1b[23~',
    key_f12=b'\x1b[24~',
    key_f13=b'\x1b[25~',
    key_f14=b'\x1b[26~',
    key_f17=b'\x1b[31~',
    key_f18=b'\x1b[32~',
    key_f19=b'\x1b[33~',
    key_f2=b'\x1bOQ',
    key_f20=b'\x1b[34~',
    key_f3=b'\x1bOR',
    key_f4=b'\x1bOS',
    key_f6=b'\x1b[17~',
    key_f7=b'\x1b[18~',
    key_f8=b'\x1b[19~',
    key_f9=b'\x1b[20~',
    key_help=b'\x1b[28~',
    key_redo=b'\x1b[29~',
    lab_f1=b'pf1',
    lab_f2=b'pf2',
    lab_f3=b'pf3',
    lab_f4=b'pf4',
    newline=b'\x1bE',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1bM',
    exit_alt_charset_mode=b'\x1b(B$<4>',
    exit_am_mode=b'\x1b[?7l',
    exit_insert_mode=b'\x1b[4l',
    exit_standout_mode=b'\x1b[27m',
    exit_underline_mode=b'\x1b[24m',
    reset_1string=b'\x1b[?3l',
    save_cursor=b'\x1b7',
    set_attributes=
    b'\x1b[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\x1b(0%e\x1b(B%;$<2>',
    exit_attribute_mode=b'\x1b[m\x1b(B',
    enter_alt_charset_mode=b'\x1b(0$<2>',
    enter_am_mode=b'\x1b[?7h',
    enter_insert_mode=b'\x1b[4h',
    enter_standout_mode=b'\x1b[7m',
    enter_underline_mode=b'\x1b[4m',
    clear_all_tabs=b'\x1b[3g',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user8=b'\x1b[?%[;0123456789]c',
    user9=b'\x1b[c',
    prtr_silent=True,
    print_screen=b'\x1b[i',
    prtr_off=b'\x1b[4i',
    prtr_on=b'\x1b[5i',
    key_find=b'\x1b[1~',
    key_ic=b'\x1b[2~',
    key_npage=b'\x1b[6~',
    key_ppage=b'\x1b[5~',
    key_select=b'\x1b[4~',
    cursor_invisible=b'\x1b[?25l',
    cursor_normal=b'\x1b[?25h')
Exemple #23
0
# Imports
from terminfo import TerminalModule

# Terminal: xterm R5 version
TerminalModule(['xterm_r5'], use=[], backspaces_with_bs=True, auto_right_margin=True, has_meta_key=True, move_standout_mode=True, eat_newline_glitch=True, columns=80, init_tabs=8, lines=24, bell=b'\x07', enter_bold_mode=b'\x1b[1m', clear_screen=b'\x1b[H\x1b[2J', carriage_return=b'\r', change_scroll_region=b'\x1b[%i%p1%d;%p2%dr', parm_left_cursor=b'\x1b[%p1%dD', cursor_left=b'\x08', parm_down_cursor=b'\x1b[%p1%dB', cursor_down=b'\n', parm_right_cursor=b'\x1b[%p1%dC', cursor_right=b'\x1b[C', cursor_address=b'\x1b[%i%p1%d;%p2%dH', parm_up_cursor=b'\x1b[%p1%dA', cursor_up=b'\x1b[A', parm_dch=b'\x1b[%p1%dP', delete_character=b'\x1b[P', parm_delete_line=b'\x1b[%p1%dM', delete_line=b'\x1b[M', clr_eos=b'\x1b[J', clr_eol=b'\x1b[K', cursor_home=b'\x1b[H', tab=b'\t', set_tab=b'\x1bH', parm_ich=b'\x1b[%p1%d@', insert_character=b'\x1b[@', parm_insert_line=b'\x1b[%p1%dL', insert_line=b'\x1b[L', scroll_forward=b'\n', key_left=b'\x1bOD', key_down=b'\x1bOB', key_right=b'\x1bOC', key_up=b'\x1bOA', key_dl=b'\x1b[31~', key_eol=b'\x1b[8~', key_f0=b'\x1bOq', key_f1=b'\x1b[11~', key_f10=b'\x1b[21~', key_f11=b'\x1b[23~', key_f12=b'\x1b[24~', key_f2=b'\x1b[12~', key_f3=b'\x1b[13~', key_f4=b'\x1b[14~', key_f5=b'\x1b[15~', key_f6=b'\x1b[17~', key_f7=b'\x1b[18~', key_f8=b'\x1b[19~', key_f9=b'\x1b[20~', key_home=b'\x1b[1~', key_il=b'\x1b[30~', key_mouse=b'\x1b[M', restore_cursor=b'\x1b8', enter_reverse_mode=b'\x1b[7m', scroll_reverse=b'\x1bM', exit_insert_mode=b'\x1b[4l', keypad_local=b'\x1b[?1l\x1b>', exit_standout_mode=b'\x1b[m', exit_underline_mode=b'\x1b[m', reset_2string=b'\x1b>\x1b[?1;3;4;5;6l\x1b[4l\x1b[?7h\x1b[m\x1b[r\x1b[2J\x1b[H', save_cursor=b'\x1b7', set_attributes=b'\x1b[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m', exit_attribute_mode=b'\x1b[m', enter_insert_mode=b'\x1b[4h', keypad_xmit=b'\x1b[?1h\x1b=', enter_standout_mode=b'\x1b[7m', enter_underline_mode=b'\x1b[4m', clear_all_tabs=b'\x1b[3g', key_backspace=b'\x08', user8=b'\x1b[?1;2c', user6=b'\x1b[%i%d;%dR', user7=b'\x1b[6n', user9=b'\x1b[c', key_dc=b'\x1b[3~', key_end=b'\x1b[4~', key_ic=b'\x1b[2~', key_npage=b'\x1b[6~', key_ppage=b'\x1b[5~')
Exemple #24
0
# Imports
from terminfo import TerminalModule

# Terminal: GNU Screen with 256 colors
TerminalModule(['screen_256color'], use=['screen'], can_change=None, max_colors=256, max_pairs=65536, initialize_color=None, orig_pair=b'\x1b[39;49m', set_a_background=b'\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m', set_a_foreground=b'\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m', set_background=None, set_foreground=None)
Exemple #25
0
TerminalModule(
    ['xterm'],
    use=[],
    no_pad_char=True,
    key_btab=b'\x1b[Z',
    key_enter=b'\x1bOM',
    newline=b'\x1bE',
    backspaces_with_bs=True,
    auto_right_margin=True,
    back_color_erase=True,
    move_insert_mode=True,
    move_standout_mode=True,
    eat_newline_glitch=True,
    AX=True,
    XT=True,
    max_colors=8,
    columns=80,
    init_tabs=8,
    lines=24,
    max_pairs=64,
    acs_chars=b'``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    bell=b'\x07',
    enter_blink_mode=b'\x1b[5m',
    enter_bold_mode=b'\x1b[1m',
    back_tab=b'\x1b[Z',
    clear_screen=b'\x1b[H\x1b[2J',
    carriage_return=b'\r',
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A',
    parm_dch=b'\x1b[%p1%dP',
    delete_character=b'\x1b[P',
    enter_dim_mode=b'\x1b[2m',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    erase_chars=b'\x1b[%p1%dX',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    clr_bol=b'\x1b[1K',
    flash_screen=b'\x1b[?5h$<100/>\x1b[?5l',
    cursor_home=b'\x1b[H',
    column_address=b'\x1b[%i%p1%dG',
    tab=b'\t',
    set_tab=b'\x1bH',
    parm_ich=b'\x1b[%p1%d@',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    enter_secure_mode=b'\x1b[8m',
    init_2string=b'\x1b[!p\x1b[?3;4l\x1b[4l\x1b>',
    key_mouse=b'\x1b[<',
    memory_lock=b'\x1bl',
    memory_unlock=b'\x1bm',
    orig_pair=b'\x1b[39;49m',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1bM',
    exit_alt_charset_mode=b'\x1b(B',
    exit_am_mode=b'\x1b[?7l',
    exit_insert_mode=b'\x1b[4l',
    keypad_local=b'\x1b[?1l\x1b>',
    exit_standout_mode=b'\x1b[27m',
    exit_underline_mode=b'\x1b[24m',
    reset_1string=b'\x1bc',
    reset_2string=b'\x1b[!p\x1b[?3;4l\x1b[4l\x1b>',
    save_cursor=b'\x1b7',
    set_a_background=b'\x1b[4%p1%dm',
    set_a_foreground=b'\x1b[3%p1%dm',
    set_background=
    b'\x1b[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m',
    set_foreground=
    b'\x1b[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m',
    set_attributes=
    b'%?%p9%t\x1b(0%e\x1b(B%;\x1b[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m',
    exit_attribute_mode=b'\x1b(B\x1b[m',
    enter_alt_charset_mode=b'\x1b(0',
    enter_am_mode=b'\x1b[?7h',
    enter_insert_mode=b'\x1b[4h',
    keypad_xmit=b'\x1b[?1h\x1b=',
    enter_standout_mode=b'\x1b[7m',
    enter_underline_mode=b'\x1b[4m',
    clear_all_tabs=b'\x1b[3g',
    row_address=b'\x1b[%i%p1%dd',
    erase_saved_lines=b'\x1b[3J',
    has_meta_key=True,
    meta_off=b'\x1b[?1034l',
    meta_on=b'\x1b[?1034h',
    cursor_invisible=b'\x1b[?25l',
    cursor_normal=b'\x1b[?12l\x1b[?25h',
    cursor_visible=b'\x1b[?12;25h',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user8=b'\x1b[?%[;0123456789]c',
    user9=b'\x1b[c',
    exit_ca_mode=b'\x1b[?1049l\x1b[23;0;0t',
    enter_ca_mode=b'\x1b[?1049h\x1b[22;0;0t',
    key_backspace=b'\x08',
    prtr_silent=True,
    print_screen=b'\x1b[i',
    prtr_off=b'\x1b[4i',
    prtr_on=b'\x1b[5i',
    kp5=b'\x1bOE',
    key_padd=b'\x1bOk',
    key_pcma=b'\x1bOl',
    key_pdiv=b'\x1bOo',
    key_pdot=b'\x1bOn',
    key_pmul=b'\x1bOj',
    key_psub=b'\x1bOm',
    key_pzero=b'\x1bOp',
    key_a1=b'\x1bOw',
    key_a3=b'\x1bOy',
    key_b2=b'\x1bOu',
    key_c1=b'\x1bOq',
    key_c3=b'\x1bOs',
    key_f1=b'\x1bOP',
    key_f2=b'\x1bOQ',
    key_f3=b'\x1bOR',
    key_f4=b'\x1bOS',
    key_a2=b'\x1bOx',
    key_b1=b'\x1bOt',
    key_b3=b'\x1bOv',
    key_c2=b'\x1bOr',
    exit_italics_mode=b'\x1b[23m',
    enter_italics_mode=b'\x1b[3m',
    Cr=b'\x1b]112\x07',
    Cs=b'\x1b]12;%p1%s\x07',
    Ms=b'\x1b]52;%p1%s;%p2%s\x07',
    Se=b'\x1b[2 q',
    Ss=b'\x1b[%p1%d q',
    XM=b'\x1b[?1006;1000%?%p1%{1}%=%th%el%;',
    xm=b'\x1b[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;',
    clear_margins=b'\x1b[?69l',
    set_lr_margin=b'\x1b[?69h\x1b[%i%p1%d;%p2%ds',
    exit_strikeout_mode=b'\x1b[29m',
    enter_strikeout_mode=b'\x1b[9m',
    repeat_char=b'%p1%c\x1b[%p2%{1}%-%db',
    parm_index=b'\x1b[%p1%dS',
    parm_rindex=b'\x1b[%p1%dT',
    key_sdc=b'\x1b[3;2~',
    key_send=b'\x1b[1;2F',
    key_shome=b'\x1b[1;2H',
    key_sic=b'\x1b[2;2~',
    key_snext=b'\x1b[6;2~',
    key_sprevious=b'\x1b[5;2~',
    key_ic=b'\x1b[2~',
    key_npage=b'\x1b[6~',
    key_ppage=b'\x1b[5~',
    key_sdc3=b'\x1b[3;3~',
    key_sdc4=b'\x1b[3;4~',
    key_sdc5=b'\x1b[3;5~',
    key_sdc6=b'\x1b[3;6~',
    key_sdc7=b'\x1b[3;7~',
    key_send3=b'\x1b[1;3F',
    key_send4=b'\x1b[1;4F',
    key_send5=b'\x1b[1;5F',
    key_send6=b'\x1b[1;6F',
    key_send7=b'\x1b[1;7F',
    key_shome3=b'\x1b[1;3H',
    key_shome4=b'\x1b[1;4H',
    key_shome5=b'\x1b[1;5H',
    key_shome6=b'\x1b[1;6H',
    key_shome7=b'\x1b[1;7H',
    key_sic3=b'\x1b[2;3~',
    key_sic4=b'\x1b[2;4~',
    key_sic5=b'\x1b[2;5~',
    key_sic6=b'\x1b[2;6~',
    key_sic7=b'\x1b[2;7~',
    key_snext3=b'\x1b[6;3~',
    key_snext4=b'\x1b[6;4~',
    key_snext5=b'\x1b[6;5~',
    key_snext6=b'\x1b[6;6~',
    key_snext7=b'\x1b[6;7~',
    key_sprevious3=b'\x1b[5;3~',
    key_sprevious4=b'\x1b[5;4~',
    key_sprevious5=b'\x1b[5;5~',
    key_sprevious6=b'\x1b[5;6~',
    key_sprevious7=b'\x1b[5;7~',
    key_dc=b'\x1b[3~',
    key_end=b'\x1bOF',
    key_home=b'\x1bOH',
    key_sleft=b'\x1b[1;2D',
    key_sright=b'\x1b[1;2C',
    key_sf=b'\x1b[1;2B',
    key_sr=b'\x1b[1;2A',
    key_sdown=b'\x1b[1;2B',
    key_sdown3=b'\x1b[1;3B',
    key_sdown4=b'\x1b[1;4B',
    key_sdown5=b'\x1b[1;5B',
    key_sdown6=b'\x1b[1;6B',
    key_sdown7=b'\x1b[1;7B',
    key_sleft3=b'\x1b[1;3D',
    key_sleft4=b'\x1b[1;4D',
    key_sleft5=b'\x1b[1;5D',
    key_sleft6=b'\x1b[1;6D',
    key_sleft7=b'\x1b[1;7D',
    key_sright3=b'\x1b[1;3C',
    key_sright4=b'\x1b[1;4C',
    key_sright5=b'\x1b[1;5C',
    key_sright6=b'\x1b[1;6C',
    key_sright7=b'\x1b[1;7C',
    key_sup=b'\x1b[1;2A',
    key_sup3=b'\x1b[1;3A',
    key_sup4=b'\x1b[1;4A',
    key_sup5=b'\x1b[1;5A',
    key_sup6=b'\x1b[1;6A',
    key_sup7=b'\x1b[1;7A',
    key_f10=b'\x1b[21~',
    key_f11=b'\x1b[23~',
    key_f12=b'\x1b[24~',
    key_f13=b'\x1b[1;2P',
    key_f14=b'\x1b[1;2Q',
    key_f15=b'\x1b[1;2R',
    key_f16=b'\x1b[1;2S',
    key_f17=b'\x1b[15;2~',
    key_f18=b'\x1b[17;2~',
    key_f19=b'\x1b[18;2~',
    key_f20=b'\x1b[19;2~',
    key_f21=b'\x1b[20;2~',
    key_f22=b'\x1b[21;2~',
    key_f23=b'\x1b[23;2~',
    key_f24=b'\x1b[24;2~',
    key_f25=b'\x1b[1;5P',
    key_f26=b'\x1b[1;5Q',
    key_f27=b'\x1b[1;5R',
    key_f28=b'\x1b[1;5S',
    key_f29=b'\x1b[15;5~',
    key_f30=b'\x1b[17;5~',
    key_f31=b'\x1b[18;5~',
    key_f32=b'\x1b[19;5~',
    key_f33=b'\x1b[20;5~',
    key_f34=b'\x1b[21;5~',
    key_f35=b'\x1b[23;5~',
    key_f36=b'\x1b[24;5~',
    key_f37=b'\x1b[1;6P',
    key_f38=b'\x1b[1;6Q',
    key_f39=b'\x1b[1;6R',
    key_f40=b'\x1b[1;6S',
    key_f41=b'\x1b[15;6~',
    key_f42=b'\x1b[17;6~',
    key_f43=b'\x1b[18;6~',
    key_f44=b'\x1b[19;6~',
    key_f45=b'\x1b[20;6~',
    key_f46=b'\x1b[21;6~',
    key_f47=b'\x1b[23;6~',
    key_f48=b'\x1b[24;6~',
    key_f49=b'\x1b[1;3P',
    key_f5=b'\x1b[15~',
    key_f50=b'\x1b[1;3Q',
    key_f51=b'\x1b[1;3R',
    key_f52=b'\x1b[1;3S',
    key_f53=b'\x1b[15;3~',
    key_f54=b'\x1b[17;3~',
    key_f55=b'\x1b[18;3~',
    key_f56=b'\x1b[19;3~',
    key_f57=b'\x1b[20;3~',
    key_f58=b'\x1b[21;3~',
    key_f59=b'\x1b[23;3~',
    key_f6=b'\x1b[17~',
    key_f60=b'\x1b[24;3~',
    key_f61=b'\x1b[1;4P',
    key_f62=b'\x1b[1;4Q',
    key_f63=b'\x1b[1;4R',
    key_f7=b'\x1b[18~',
    key_f8=b'\x1b[19~',
    key_f9=b'\x1b[20~',
    key_left=b'\x1bOD',
    key_down=b'\x1bOB',
    key_right=b'\x1bOC',
    key_up=b'\x1bOA')
Exemple #26
0
# Imports
from terminfo import TerminalModule

# Terminal: linux console with 16 colors
TerminalModule(['linux_16color'],
               use=['linux'],
               max_colors=16,
               no_color_video=42,
               max_pairs=256,
               set_a_background=b'\x1b[4%p1%{8}%m%d%?%p1%{7}%>%t;5%e;25%;m',
               set_a_foreground=b'\x1b[3%p1%{8}%m%d%?%p1%{7}%>%t;1%e;22%;m')
Exemple #27
0
TerminalModule(
    ['vt100'],
    use=[],
    backspaces_with_bs=True,
    prtr_silent=True,
    eat_newline_glitch=True,
    xon_xoff=True,
    virtual_terminal=3,
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    key_left=b'\x1bOD',
    key_down=b'\x1bOB',
    key_right=b'\x1bOC',
    key_up=b'\x1bOA',
    lab_f1=b'pf1',
    lab_f2=b'pf2',
    lab_f3=b'pf3',
    lab_f4=b'pf4',
    print_screen=b'\x1b[0i',
    prtr_off=b'\x1b[4i',
    prtr_on=b'\x1b[5i',
    restore_cursor=b'\x1b8',
    exit_am_mode=b'\x1b[?7l',
    keypad_local=b'\x1b[?1l\x1b>',
    reset_2string=b'\x1b<\x1b>\x1b[?3;4;5l\x1b[?7;8h\x1b[r',
    save_cursor=b'\x1b7',
    set_attributes=
    b'\x1b[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\x0e%e\x0f%;$<2>',
    enter_am_mode=b'\x1b[?7h',
    keypad_xmit=b'\x1b[?1h\x1b=',
    enter_standout_mode=b'\x1b[7m$<2>',
    key_f0=b'\x1bOy',
    key_f10=b'\x1bOx',
    key_f5=b'\x1bOt',
    key_f6=b'\x1bOu',
    key_f7=b'\x1bOv',
    key_f8=b'\x1bOl',
    key_f9=b'\x1bOw',
    key_enter=b'\x1bOM',
    key_f1=b'\x1bOP',
    key_f2=b'\x1bOQ',
    key_f3=b'\x1bOR',
    key_f4=b'\x1bOS',
    key_a1=b'\x1bOq',
    key_a3=b'\x1bOs',
    key_b2=b'\x1bOr',
    key_c1=b'\x1bOp',
    key_c3=b'\x1bOn',
    auto_right_margin=True,
    move_standout_mode=True,
    columns=80,
    init_tabs=8,
    lines=24,
    acs_chars=b'``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    bell=b'\x07',
    enter_blink_mode=b'\x1b[5m$<2>',
    enter_bold_mode=b'\x1b[1m$<2>',
    clear_screen=b'\x1b[H\x1b[J$<50>',
    carriage_return=b'\r',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C$<2>',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH$<5>',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A$<2>',
    clr_eos=b'\x1b[J$<50>',
    clr_eol=b'\x1b[K$<3>',
    clr_bol=b'\x1b[1K$<3>',
    ena_acs=b'\x1b(B\x1b)0',
    cursor_home=b'\x1b[H',
    tab=b'\t',
    set_tab=b'\x1bH',
    scroll_forward=b'\n',
    key_backspace=b'\x08',
    enter_reverse_mode=b'\x1b[7m$<2>',
    scroll_reverse=b'\x1bM$<5>',
    exit_alt_charset_mode=b'\x0f',
    exit_standout_mode=b'\x1b[m$<2>',
    exit_underline_mode=b'\x1b[m$<2>',
    exit_attribute_mode=b'\x1b[m\x0f$<2>',
    enter_alt_charset_mode=b'\x0e',
    enter_underline_mode=b'\x1b[4m$<2>',
    clear_all_tabs=b'\x1b[3g')
Exemple #28
0
# Imports
from terminfo import TerminalModule

# Terminal: xterm terminal emulator (XFree86)
TerminalModule(['xterm_xfree86'], use=[], key_sdc=b'\x1b[3;2~', key_send=b'\x1b[1;2F', key_shome=b'\x1b[1;2H', key_sic=b'\x1b[2;2~', key_sleft=b'\x1b[1;2D', key_snext=b'\x1b[6;2~', key_sprevious=b'\x1b[5;2~', key_sright=b'\x1b[1;2C', key_beg=None, set_attributes=b'\x1b[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\x0e%e\x0f%;', no_pad_char=True, key_a1=None, key_a3=None, key_b2=b'\x1bOE', key_c1=None, key_c3=None, key_btab=b'\x1b[Z', key_dc=b'\x1b[3~', key_end=b'\x1bOF', key_f13=b'\x1bO2P', key_f14=b'\x1bO2Q', key_f15=b'\x1bO2R', key_f16=b'\x1bO2S', key_f17=b'\x1b[15;2~', key_f18=b'\x1b[17;2~', key_f19=b'\x1b[18;2~', key_f20=b'\x1b[19;2~', key_f21=b'\x1b[20;2~', key_f22=b'\x1b[21;2~', key_f23=b'\x1b[23;2~', key_f24=b'\x1b[24;2~', key_f25=b'\x1bO5P', key_f26=b'\x1bO5Q', key_f27=b'\x1bO5R', key_f28=b'\x1bO5S', key_f29=b'\x1b[15;5~', key_f30=b'\x1b[17;5~', key_f31=b'\x1b[18;5~', key_f32=b'\x1b[19;5~', key_f33=b'\x1b[20;5~', key_f34=b'\x1b[21;5~', key_f35=b'\x1b[23;5~', key_f36=b'\x1b[24;5~', key_f37=b'\x1bO6P', key_f38=b'\x1bO6Q', key_f39=b'\x1bO6R', key_f40=b'\x1bO6S', key_f41=b'\x1b[15;6~', key_f42=b'\x1b[17;6~', key_f43=b'\x1b[18;6~', key_f44=b'\x1b[19;6~', key_f45=b'\x1b[20;6~', key_f46=b'\x1b[21;6~', key_f47=b'\x1b[23;6~', key_f48=b'\x1b[24;6~', key_home=b'\x1bOH', enter_blink_mode=b'\x1b[5m', insert_character=None, enter_secure_mode=b'\x1b[8m', init_2string=b'\x1b[!p\x1b[?3;4l\x1b[4l\x1b>', key_find=None, key_select=None, exit_ca_mode=b'\x1b[?1049l', reset_1string=b'\x1bc', reset_2string=b'\x1b[!p\x1b[?3;4l\x1b[4l\x1b>', enter_ca_mode=b'\x1b[?1049h', key_f1=b'\x1bOP', key_f2=b'\x1bOQ', key_f3=b'\x1bOR', key_f4=b'\x1bOS', backspaces_with_bs=True, auto_right_margin=True, back_color_erase=True, has_meta_key=True, move_insert_mode=True, move_standout_mode=True, eat_newline_glitch=True, XT=True, columns=80, init_tabs=8, lines=24, no_color_video=None, acs_chars=b'``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~', bell=b'\x07', enter_bold_mode=b'\x1b[1m', back_tab=b'\x1b[Z', clear_screen=b'\x1b[H\x1b[2J', carriage_return=b'\r', change_scroll_region=b'\x1b[%i%p1%d;%p2%dr', parm_left_cursor=b'\x1b[%p1%dD', cursor_left=b'\x08', parm_down_cursor=b'\x1b[%p1%dB', cursor_down=b'\n', parm_right_cursor=b'\x1b[%p1%dC', cursor_right=b'\x1b[C', cursor_address=b'\x1b[%i%p1%d;%p2%dH', parm_up_cursor=b'\x1b[%p1%dA', cursor_up=b'\x1b[A', parm_dch=b'\x1b[%p1%dP', delete_character=b'\x1b[P', parm_delete_line=b'\x1b[%p1%dM', delete_line=b'\x1b[M', erase_chars=b'\x1b[%p1%dX', clr_eos=b'\x1b[J', clr_eol=b'\x1b[K', clr_bol=b'\x1b[1K', ena_acs=b'\x1b(B\x1b)0', flash_screen=b'\x1b[?5h$<100/>\x1b[?5l', cursor_home=b'\x1b[H', column_address=b'\x1b[%i%p1%dG', tab=b'\t', set_tab=b'\x1bH', parm_ich=b'\x1b[%p1%d@', parm_insert_line=b'\x1b[%p1%dL', insert_line=b'\x1b[L', scroll_forward=b'\n', key_left=b'\x1bOD', key_down=b'\x1bOB', key_right=b'\x1bOC', key_up=b'\x1bOA', key_f10=b'\x1b[21~', key_f11=b'\x1b[23~', key_f12=b'\x1b[24~', key_f5=b'\x1b[15~', key_f6=b'\x1b[17~', key_f7=b'\x1b[18~', key_f8=b'\x1b[19~', key_f9=b'\x1b[20~', key_ic=b'\x1b[2~', key_mouse=b'\x1b[M', key_npage=b'\x1b[6~', key_ppage=b'\x1b[5~', memory_lock=b'\x1bl', memory_unlock=b'\x1bm', restore_cursor=b'\x1b8', enter_reverse_mode=b'\x1b[7m', scroll_reverse=b'\x1bM', exit_alt_charset_mode=b'\x0f', exit_am_mode=b'\x1b[?7l', exit_insert_mode=b'\x1b[4l', keypad_local=b'\x1b[?1l\x1b>', exit_standout_mode=b'\x1b[27m', exit_underline_mode=b'\x1b[24m', save_cursor=b'\x1b7', set_background=b'\x1b[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m', set_foreground=b'\x1b[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m', exit_attribute_mode=b'\x1b[m\x0f', enter_alt_charset_mode=b'\x0e', enter_am_mode=b'\x1b[?7h', enter_insert_mode=b'\x1b[4h', keypad_xmit=b'\x1b[?1h\x1b=', enter_standout_mode=b'\x1b[7m', enter_underline_mode=b'\x1b[4m', clear_all_tabs=b'\x1b[3g', row_address=b'\x1b[%i%p1%dd', key_enter=b'\x1bOM', key_a2=b'\x1bOx', key_b1=b'\x1bOt', key_b3=b'\x1bOv', key_c2=b'\x1bOr', cursor_invisible=b'\x1b[?25l', cursor_normal=b'\x1b[?12l\x1b[?25h', AX=True, max_colors=8, max_pairs=64, orig_pair=b'\x1b[39;49m', set_a_background=b'\x1b[4%p1%dm', set_a_foreground=b'\x1b[3%p1%dm', user8=b'\x1b[?1;2c', user6=b'\x1b[%i%d;%dR', user7=b'\x1b[6n', user9=b'\x1b[c', key_backspace=b'\x08', prtr_silent=True, print_screen=b'\x1b[i', prtr_off=b'\x1b[4i', prtr_on=b'\x1b[5i', parm_index=b'\x1b[%p1%dS', parm_rindex=b'\x1b[%p1%dT', cursor_visible=b'\x1b[?12;25h')
Exemple #29
0
# Imports
from terminfo import TerminalModule

# Terminal: monochrome xterm
TerminalModule(['xterm_mono'], use=['xterm_r6'])
Exemple #30
0
TerminalModule(
    ['xterm_r6'],
    use=[],
    backspaces_with_bs=True,
    auto_right_margin=True,
    has_meta_key=True,
    move_insert_mode=True,
    move_standout_mode=True,
    eat_newline_glitch=True,
    columns=80,
    init_tabs=8,
    lines=24,
    acs_chars=b'``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~',
    bell=b'\x07',
    enter_bold_mode=b'\x1b[1m',
    clear_screen=b'\x1b[H\x1b[2J',
    carriage_return=b'\r',
    change_scroll_region=b'\x1b[%i%p1%d;%p2%dr',
    parm_left_cursor=b'\x1b[%p1%dD',
    cursor_left=b'\x08',
    parm_down_cursor=b'\x1b[%p1%dB',
    cursor_down=b'\n',
    parm_right_cursor=b'\x1b[%p1%dC',
    cursor_right=b'\x1b[C',
    cursor_address=b'\x1b[%i%p1%d;%p2%dH',
    parm_up_cursor=b'\x1b[%p1%dA',
    cursor_up=b'\x1b[A',
    parm_dch=b'\x1b[%p1%dP',
    delete_character=b'\x1b[P',
    parm_delete_line=b'\x1b[%p1%dM',
    delete_line=b'\x1b[M',
    clr_eos=b'\x1b[J',
    clr_eol=b'\x1b[K',
    ena_acs=b'\x1b)0',
    cursor_home=b'\x1b[H',
    tab=b'\t',
    set_tab=b'\x1bH',
    parm_insert_line=b'\x1b[%p1%dL',
    insert_line=b'\x1b[L',
    scroll_forward=b'\n',
    init_2string=b'\x1b[m\x1b[?7h\x1b[4l\x1b>\x1b7\x1b[r\x1b[?1;3;4;6l\x1b8',
    key_left=b'\x1bOD',
    key_down=b'\x1bOB',
    key_right=b'\x1bOC',
    key_up=b'\x1bOA',
    key_f1=b'\x1b[11~',
    key_f10=b'\x1b[21~',
    key_f11=b'\x1b[23~',
    key_f12=b'\x1b[24~',
    key_f13=b'\x1b[25~',
    key_f14=b'\x1b[26~',
    key_f15=b'\x1b[28~',
    key_f16=b'\x1b[29~',
    key_f17=b'\x1b[31~',
    key_f18=b'\x1b[32~',
    key_f19=b'\x1b[33~',
    key_f2=b'\x1b[12~',
    key_f20=b'\x1b[34~',
    key_f3=b'\x1b[13~',
    key_f4=b'\x1b[14~',
    key_f5=b'\x1b[15~',
    key_f6=b'\x1b[17~',
    key_f7=b'\x1b[18~',
    key_f8=b'\x1b[19~',
    key_f9=b'\x1b[20~',
    key_mouse=b'\x1b[M',
    memory_lock=b'\x1bl',
    memory_unlock=b'\x1bm',
    restore_cursor=b'\x1b8',
    enter_reverse_mode=b'\x1b[7m',
    scroll_reverse=b'\x1bM',
    exit_alt_charset_mode=b'\x0f',
    exit_ca_mode=b'\x1b[2J\x1b[?47l\x1b8',
    exit_insert_mode=b'\x1b[4l',
    keypad_local=b'\x1b[?1l\x1b>',
    exit_standout_mode=b'\x1b[m',
    exit_underline_mode=b'\x1b[m',
    reset_2string=b'\x1b[m\x1b[?7h\x1b[4l\x1b>\x1b7\x1b[r\x1b[?1;3;4;6l\x1b8',
    save_cursor=b'\x1b7',
    exit_attribute_mode=b'\x1b[m',
    enter_alt_charset_mode=b'\x0e',
    enter_ca_mode=b'\x1b7\x1b[?47h',
    enter_insert_mode=b'\x1b[4h',
    keypad_xmit=b'\x1b[?1h\x1b=',
    enter_standout_mode=b'\x1b[7m',
    enter_underline_mode=b'\x1b[4m',
    clear_all_tabs=b'\x1b[3g',
    user8=b'\x1b[?1;2c',
    user6=b'\x1b[%i%d;%dR',
    user7=b'\x1b[6n',
    user9=b'\x1b[c',
    key_backspace=b'\x08',
    key_dc=b'\x1b[3~',
    key_find=b'\x1b[1~',
    key_ic=b'\x1b[2~',
    key_npage=b'\x1b[6~',
    key_ppage=b'\x1b[5~',
    key_select=b'\x1b[4~')