Package: py100
py100python wrapper for VT100 escape sequences, which are supported by most modern terminals (on linux at least).Installationpip3 install py100Usagefrom py100 import py100py100.some_function_from_the_table_below()ProgressThis is the list of what is currently supported and what should be supported in the future. If a sequence isn't marked as planned it may just mean I didn't have a look at it yet.SequenceDescriptionNameSupportedPlannedFunctionEsc[20hSet new line modeLMN:heavy_check_mark::heavy_check_mark:set_new_line_mode()Esc[?1hSet cursor key to applicationDECCKM:heavy_check_mark::heavy_check_mark:set_cursor_key_to_application()Esc[?3hSet number of columns to 132DECCOLM:heavy_check_mark::heavy_check_mark:set_columns_to_132()Esc[?4hSet smooth scrollingDECSCLM:heavy_check_mark::heavy_check_mark:set_smooth_scrolling()Esc[?5hSet reverse video on screenDECSCNM:heavy_check_mark::heavy_check_mark:set_reverse_video_on_screen()Esc[?6hSet origin to relativeDECOM:heavy_check_mark::heavy_check_mark:set_origin_relative()Esc[?7hSet auto-wrap modeDECAWM:heavy_check_mark::heavy_check_mark:set_auto_wrap_mode()Esc[?8hSet auto-repeat modeDECARM:heavy_check_mark::heavy_check_mark:set_auto_repeat_mode()Esc[?9hSet interlacing modeDECINLM:heavy_check_mark::heavy_check_mark:set_interlacing_mode()Esc[20lSet line feed modeLMN:heavy_check_mark::heavy_check_mark:set_line_feed_mode()Esc[?1lSet cursor key to cursorDECCKM:heavy_check_mark::heavy_check_mark:set_cursor_to_key_mode()Esc[?2lSet VT52 (versus ANSI)DECANM:heavy_check_mark::heavy_check_mark:set_vt52()Esc[?3lSet number of columns to 80DECCOLM:heavy_check_mark::heavy_check_mark:set_columns_to_80()Esc[?4lSet jump scrollingDECSCLM:heavy_check_mark::heavy_check_mark:set_jump_scrolling()Esc[?5lSet normal video on screenDECSCNM:heavy_check_mark::heavy_check_mark:set_normal_video_on_screen()Esc[?6lSet origin to absoluteDECOM:heavy_check_mark::heavy_check_mark:set_origin_absolute()Esc[?7lReset auto-wrap modeDECAWM:heavy_check_mark::heavy_check_mark:reset_auto_wrap_mode()Esc[?8lReset auto-repeat modeDECARM:heavy_check_mark::heavy_check_mark:reset_auto_repeat_mode()Esc[?9lReset interlacing modeDECINLM:heavy_check_mark::heavy_check_mark:reset_interlacing_mode()Esc=Set alternate keypad modeDECKPAM:heavy_check_mark::heavy_check_mark:set_alternate_keypad_mode()Esc>Set numeric keypad modeDECKPNM:heavy_check_mark::heavy_check_mark:set_numeric_keypad_mode()Esc(ASet United Kingdom G0 character setsetukg0:heavy_check_mark::heavy_check_mark:set_united_kingdom_g0_character_set()Esc)ASet United Kingdom G1 character setsetukg1:heavy_check_mark::heavy_check_mark:set_united_kingdom_g1_character_set()Esc(BSet United States G0 character setsetusg0:heavy_check_mark::heavy_check_mark:set_united_states_g0_character_set()Esc)BSet United States G1 character setsetusg1:heavy_check_mark::heavy_check_mark:set_united_states_g1_character_set()Esc(0Set G0 special chars. & line setsetspecg0:heavy_check_mark::heavy_check_mark:set_g0_special_chars_and_line_set()Esc)0Set G1 special chars. & line setsetspecg1:heavy_check_mark::heavy_check_mark:set_g1_special_chars_and_line_set()Esc(1Set G0 alternate character ROMsetaltg0:heavy_check_mark::heavy_check_mark:set_g0_alternate_character_rom()Esc)1Set G1 alternate character ROMsetaltg1:heavy_check_mark::heavy_check_mark:set_g1_alternate_character_rom()Esc(2Set G0 alt char ROM and spec. graphicssetaltspecg0:heavy_check_mark::heavy_check_mark:set_g0_alt_char_rom_and_spec_graphics()Esc)2Set G1 alt char ROM and spec. graphicssetaltspecg1:heavy_check_mark::heavy_check_mark:set_g1_alt_char_rom_and_spec_graphics()EscNSet single shift 2SS2:heavy_check_mark::heavy_check_mark:set_single_shift_2()EscOSet single shift 3SS3:heavy_check_mark::heavy_check_mark:set_single_shift_3()Esc[mTurn off character attributesSGR0:heavy_check_mark::heavy_check_mark:turn_off_characters_attributes()Esc[0mTurn off character attributesSGR0:heavy_check_mark::heavy_check_mark:turn_off_characters_attributes()Esc[1mTurn bold mode onSGR1:heavy_check_mark::heavy_check_mark:turn_bold_mode_on()Esc[2mTurn low intensity mode onSGR2:heavy_check_mark::heavy_check_mark:turn_low_intensity_mode_on()Esc[4mTurn underline mode onSGR4:heavy_check_mark::heavy_check_mark:turn_underline_mode_on()Esc[5mTurn blinking mode onSGR5:heavy_check_mark::heavy_check_mark:turn_blinking_mode_on()Esc[7mTurn reverse video onSGR7:heavy_check_mark::heavy_check_mark:turn_reverse_video_mode_on()Esc[8mTurn invisible text mode onSGR8:heavy_check_mark::heavy_check_mark:turn_invisible_text_mode_on()Esc[Line;LinerSet top and bottom lines of a windowDECSTBM:heavy_check_mark::heavy_check_mark:set_top_and_bottom_lines_of_a_window(top_line, bottom_line)Esc[ValueAMove cursor up n linesCUU:heavy_check_mark::heavy_check_mark:move_cursor_up(nb_line)Esc[ValueBMove cursor down n linesCUD:heavy_check_mark::heavy_check_mark:move_cursor_down(nb_line)Esc[ValueCMove cursor right n linesCUF:heavy_check_mark::heavy_check_mark:move_cursor_right(nb_line)Esc[ValueDMove cursor left n linesCUB:heavy_check_mark::heavy_check_mark:move_cursor_left(nb_line)Esc[HMove cursor to upper left cornercursorhome:heavy_check_mark::heavy_check_mark:move_cursor_upper_left()Esc[;HMove cursor to upper left cornercursorhome:heavy_check_mark::heavy_check_mark:move_cursor_upper_left()Esc[Line;ColumnHMove cursor to screen location v,hCUP:heavy_check_mark::heavy_check_mark:move_cursor_to_location()Esc[fMove cursor to upper left cornerhvhome:heavy_check_mark::heavy_check_mark:move_cursor_upper_left()Esc[;fMove cursor to upper left cornerhvhome:heavy_check_mark::heavy_check_mark:move_cursor_upper_left()Esc[Line;ColumnfMove cursor to screen location v,hCUP:heavy_check_mark::heavy_check_mark:move_cursor_to_location(hpos, vpos)EscDMove/scroll window up one lineIND:heavy_check_mark::heavy_check_mark:scroll_window_up()EscMMove/scroll window down one lineRI:heavy_check_mark::heavy_check_mark:scroll_window_down()EscEMove to next lineNEL:heavy_check_mark::heavy_check_mark:move_to_next_line()Esc7Save cursor position and attributesDECSC:heavy_check_mark::heavy_check_mark:save_cursor_position()Esc8Restore cursor position and attributesDECSC:heavy_check_mark::heavy_check_mark:restore_cursor_position()EscHSet a tab at the current columnHTS:heavy_check_mark::heavy_check_mark:set_a_tab_at_the_current_column()Esc[gClear a tab at the current columnTBC:heavy_check_mark::heavy_check_mark:clear_a_tab_at_the_current_column()Esc[0gClear a tab at the current columnTBC:heavy_check_mark::heavy_check_mark:clear_a_tab_at_the_current_column()Esc[3gClear all tabsTBC:heavy_check_mark::heavy_check_mark:clear_all_tabs()Esc#3Double-height letters, top halfDECDHL:heavy_check_mark::heavy_check_mark:double_height_letters_top_half()Esc#4Double-height letters, bottom halfDECDHL:heavy_check_mark::heavy_check_mark:double_height_letters_bottom_half()Esc#5Single width, single height lettersDECSWL:heavy_check_mark::heavy_check_mark:single_width_single_height_letters()Esc#6Double width, single height lettersDECDWL:heavy_check_mark::heavy_check_mark:double_width_single_height_letters()Esc[KClear line from cursor rightEL0:heavy_check_mark::heavy_check_mark:clear_line_from_cursor_right()Esc[0KClear line from cursor rightEL0:heavy_check_mark::heavy_check_mark:clear_line_from_cursor_right()Esc[1KClear line from cursor leftEL1:heavy_check_mark::heavy_check_mark:clear_line_from_cursor_left()Esc[2KClear entire lineEL2:heavy_check_mark::heavy_check_mark:clear_entire_line()Esc[JClear screen from cursor downED0:heavy_check_mark::heavy_check_mark:clear_line_from_cursor_down()Esc[0JClear screen from cursor downED0:heavy_check_mark::heavy_check_mark:clear_line_from_cursor_down()Esc[1JClear screen from cursor upED1:heavy_check_mark::heavy_check_mark:clear_line_from_cursor_up()Esc[2JClear entire screenED2:heavy_check_mark::heavy_check_mark:clear_screen()Esc5nDevice status reportDSR:heavy_check_mark:Esc0nResponse: terminal is OKDSR:heavy_check_mark:Esc3nResponse: terminal is not OKDSR:heavy_check_mark:Esc6nGet cursor positionDSR:heavy_check_mark::heavy_check_mark:get_cursor_position()EscLine;ColumnRResponse: cursor is at v,hCPR:heavy_check_mark::heavy_check_mark:get_cursor_position()Esc[cIdentify what terminal typeDA:heavy_check_mark:Esc[0cIdentify what terminal type (another)DA:heavy_check_mark:Esc[?1;Value0cResponse: terminal type code nDA:heavy_check_mark:EsccReset terminal to initial stateRIS:heavy_check_mark::heavy_check_mark:reset_terminal_to_initial_state()Esc#8Screen alignment displayDECALN:heavy_check_mark::heavy_check_mark:screen_alignment_display()Esc[2;1yConfidence power up testDECTSTEsc[2;2yConfidence loopback testDECTSTEsc[2;9yRepeat power up testDECTSTEsc[2;10yRepeat loopback testDECTSTEsc[0qTurn off all four ledsDECLL0:heavy_check_mark::heavy_check_mark:turn_off_all_four_leds()Esc[1qTurn on LED #1DECLL1:heavy_check_mark::heavy_check_mark:turn_on_led_1()Esc[2qTurn on LED #2DECLL2:heavy_check_mark::heavy_check_mark:turn_on_led_2()Esc[3qTurn on LED #3DECLL3:heavy_check_mark::heavy_check_mark:turn_on_led_3()Esc[4qTurn on LED #4DECLL4:heavy_check_mark::heavy_check_mark:turn_on_led_4()Info on the VT100 escape sequencesInformation on all the VT100 escape sequences can be foundhere(This is where my list comes from).More information on the DEC Terminals can be found onvt100.net.