|
TTY OV
1
A cross platform python terminal
|


Public Member Functions | |
| None | __init__ (self, int err, int error, int success, ColouriseOutput colour_lib, AskQuestion ask_question, Dict colours, bool colourise_output=True) |
| None | print_on_tty (self, str colour, str string) |
| int | run_external_command (self, str command) |
| str | list_to_str (self, List[any] hl_list, str join=" ") |
| int | version (self, List args) |
| int | show_history (self, List args) |
| int | process_session_name (self, List args) |
| int | author (self, List args) |
| int | client (self, List args) |
| int | env (self, List args) |
| None | session_admin (self) |
| int | env_plus_plus (self, List args) |
| int | setenv (self, List args) |
| int | unset_single_variable (self, str argument) |
| int | ask_for_env_to_unset (self) |
| int | unsetenv (self, List args) |
| None | display_status_code (self, List args) |
| None | function_help (self, str function_name, str description) |
| None | help_help (self) |
| None | help_prompt (self) |
| int | process_help_call (self, List args) |
| int | help (self, List args) |
| int | pwd (self, List args) |
| str | sanitize_directory_path (self, str dir_name) |
| int | create_directories (self, str path, bool show_if_created=True) |
| int | make_directory (self, List args) |
| int | check_file_path (self, str file_path) |
| int | create_a_file (self, str filename) |
| int | touch (self, List arg) |
| int | remove_a_directory (self, str directory_path) |
| int | remove_directory (self, List args) |
| int | remove_an_item (self, str path) |
| int | remove_file (self, List args) |
| int | cd_access_directory (self, str path) |
| int | cd_go_further_than_home (self, str path) |
| int | cd_rollback (self, str path) |
| int | change_directory (self, List args) |
| int | exit (self, List args) |
| int | kill (self, List args) |
| None | display_status_in_prompt (self) |
| None | create_key_prompt_bindings (self) |
| str | process_key_inputs (self) |
| None | display_prompt (self) |
| str | get_current_folder (self) |
| int | bind_ls (self, List args) |
| int | hello_world (self, List args) |
| int | run_command (self, List args) |
| bool | check_if_admin_for_windows (self) |
| bool | is_admin (self) |
| int | run_as_windows_admin (self, str file) |
| int | check_admin (self, List args) |
| int | save_to_file (self, str data, str filepath) |
| int | run_as_admin (self, List args) |
| bool | is_exactly_in_string (self, str string1, str string2) |
| None | process_input (self) |
| None | assing_colours (self) |
| int | command_seperator (self, List args) |
| int | update_comment_token (self, List args) |
| None | title (self) |
| None | get_the_home_path (self) |
| None | commands_to_auto_complete (self) |
| None | load_basics (self) |
| int | unload_basics (self) |
| int | import_functions_into_shell (self, List[Dict[str, any]] functions) |
| int | remove_function_from_options (self, Dict[str, any] function) |
| int | remove_functions_from_shell (self, List[Dict[str, any]] functions) |
| None | goodbye_message (self) |
| None | run_complex_input (self, List[str] complex_input) |
| None | process_complex_input (self, List usr_input) |
| None | process_if_arg_input (self) |
| str | clean_string (self, str input_string) |
| None | process_if_pipe_input (self) |
| int | mainloop (self, session_name="main") |
Protected Member Functions | |
| int | _set_file_content (self, str file_path, str content, str mode="w", str encoding="utf-8", str newline="\n") |
| None tty_ov.tty_ov.TTY.__init__ | ( | self, | |
| int | err, | ||
| int | error, | ||
| int | success, | ||
| ColouriseOutput | colour_lib, | ||
| AskQuestion | ask_question, | ||
| Dict | colours, | ||
| bool | colourise_output = True ) |
|
protected |
| int tty_ov.tty_ov.TTY.ask_for_env_to_unset | ( | self | ) |
| None tty_ov.tty_ov.TTY.assing_colours | ( | self | ) |
| int tty_ov.tty_ov.TTY.author | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.bind_ls | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.cd_access_directory | ( | self, | |
| str | path ) |
| int tty_ov.tty_ov.TTY.cd_go_further_than_home | ( | self, | |
| str | path ) |
| int tty_ov.tty_ov.TTY.cd_rollback | ( | self, | |
| str | path ) |
| int tty_ov.tty_ov.TTY.change_directory | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.check_admin | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.check_file_path | ( | self, | |
| str | file_path ) |
| bool tty_ov.tty_ov.TTY.check_if_admin_for_windows | ( | self | ) |
| str tty_ov.tty_ov.TTY.clean_string | ( | self, | |
| str | input_string ) |
| int tty_ov.tty_ov.TTY.client | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.command_seperator | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.commands_to_auto_complete | ( | self | ) |
| int tty_ov.tty_ov.TTY.create_a_file | ( | self, | |
| str | filename ) |
| int tty_ov.tty_ov.TTY.create_directories | ( | self, | |
| str | path, | ||
| bool | show_if_created = True ) |
| None tty_ov.tty_ov.TTY.create_key_prompt_bindings | ( | self | ) |
| None tty_ov.tty_ov.TTY.display_prompt | ( | self | ) |
| None tty_ov.tty_ov.TTY.display_status_code | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.display_status_in_prompt | ( | self | ) |
| int tty_ov.tty_ov.TTY.env | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.env_plus_plus | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.exit | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.function_help | ( | self, | |
| str | function_name, | ||
| str | description ) |
| str tty_ov.tty_ov.TTY.get_current_folder | ( | self | ) |
| None tty_ov.tty_ov.TTY.get_the_home_path | ( | self | ) |
| None tty_ov.tty_ov.TTY.goodbye_message | ( | self | ) |
| int tty_ov.tty_ov.TTY.hello_world | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.help | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.help_help | ( | self | ) |
| None tty_ov.tty_ov.TTY.help_prompt | ( | self | ) |
| int tty_ov.tty_ov.TTY.import_functions_into_shell | ( | self, | |
| List[Dict[str, any]] | functions ) |
| bool tty_ov.tty_ov.TTY.is_admin | ( | self | ) |
| bool tty_ov.tty_ov.TTY.is_exactly_in_string | ( | self, | |
| str | string1, | ||
| str | string2 ) |
| int tty_ov.tty_ov.TTY.kill | ( | self, | |
| List | args ) |
| str tty_ov.tty_ov.TTY.list_to_str | ( | self, | |
| List[any] | hl_list, | ||
| str | join = " " ) |
| None tty_ov.tty_ov.TTY.load_basics | ( | self | ) |
| int tty_ov.tty_ov.TTY.mainloop | ( | self, | |
| session_name = "main" ) |
| int tty_ov.tty_ov.TTY.make_directory | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.print_on_tty | ( | self, | |
| str | colour, | ||
| str | string ) |
| None tty_ov.tty_ov.TTY.process_complex_input | ( | self, | |
| List | usr_input ) |
| int tty_ov.tty_ov.TTY.process_help_call | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.process_if_arg_input | ( | self | ) |
| None tty_ov.tty_ov.TTY.process_if_pipe_input | ( | self | ) |
| None tty_ov.tty_ov.TTY.process_input | ( | self | ) |
| str tty_ov.tty_ov.TTY.process_key_inputs | ( | self | ) |
| int tty_ov.tty_ov.TTY.process_session_name | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.pwd | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.remove_a_directory | ( | self, | |
| str | directory_path ) |
| int tty_ov.tty_ov.TTY.remove_an_item | ( | self, | |
| str | path ) |
| int tty_ov.tty_ov.TTY.remove_directory | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.remove_file | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.remove_function_from_options | ( | self, | |
| Dict[str, any] | function ) |
| int tty_ov.tty_ov.TTY.remove_functions_from_shell | ( | self, | |
| List[Dict[str, any]] | functions ) |
| int tty_ov.tty_ov.TTY.run_as_admin | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.run_as_windows_admin | ( | self, | |
| str | file ) |
| int tty_ov.tty_ov.TTY.run_command | ( | self, | |
| List | args ) |
| None tty_ov.tty_ov.TTY.run_complex_input | ( | self, | |
| List[str] | complex_input ) |
| int tty_ov.tty_ov.TTY.run_external_command | ( | self, | |
| str | command ) |
| str tty_ov.tty_ov.TTY.sanitize_directory_path | ( | self, | |
| str | dir_name ) |
| int tty_ov.tty_ov.TTY.save_to_file | ( | self, | |
| str | data, | ||
| str | filepath ) |
| None tty_ov.tty_ov.TTY.session_admin | ( | self | ) |
| int tty_ov.tty_ov.TTY.setenv | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.show_history | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.touch | ( | self, | |
| List | arg ) |
| int tty_ov.tty_ov.TTY.unload_basics | ( | self | ) |
| int tty_ov.tty_ov.TTY.unset_single_variable | ( | self, | |
| str | argument ) |
| int tty_ov.tty_ov.TTY.unsetenv | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.update_comment_token | ( | self, | |
| List | args ) |
| int tty_ov.tty_ov.TTY.version | ( | self, | |
| List | args ) |
| str tty_ov.tty_ov.TTY.auto_complete_default_usr_input = "" |
| tty_ov.tty_ov.TTY.colours = self.colour_lib.unix_colour_pallet |
| str tty_ov.tty_ov.TTY.command_description_token_inner = "desc" |
| list tty_ov.tty_ov.TTY.help_help_options |
| list tty_ov.tty_ov.TTY.history_index = self.history[self.history_index] |
| str tty_ov.tty_ov.TTY.program_author = "(c) Henry Letellier" |
| tty_ov.tty_ov.TTY.user_session = prompt_toolkit.PromptSession() |