TTY OV  1
A cross platform python terminal
Loading...
Searching...
No Matches
tty_ov.tty_ov.TTY Class Reference
Inheritance diagram for tty_ov.tty_ov.TTY:
Inheritance graph
Collaboration diagram for tty_ov.tty_ov.TTY:
Collaboration graph

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")
 

Data Fields

str program_version = self.__version__
 
str client_name = "(c) OpenValue"
 
str program_author = "(c) Henry Letellier"
 
list history = []
 
 prompt_history = InMemoryHistory()
 
int history_index = 0
 
 success = success
 
 err = err
 
 error = error
 
bool continue_tty_loop = True
 
int current_tty_status = self.success
 
 colour_lib = colour_lib
 
 ask_question = ask_question
 
list options = []
 
 colours = self.colour_lib.unix_colour_pallet
 
 tty_colours = colours
 
 reset_colour = None
 
 prompt_colour = None
 
 default_colour = None
 
 error_colour = None
 
 success_colour = None
 
 info_colour = None
 
str user_input = ""
 
 user_session = prompt_toolkit.PromptSession()
 
str input_split_char = " "
 
str help_function_child_name = "help"
 
list help_help_options
 
bool enable_multi_command_help = True
 
 help_title_colour = None
 
 help_command_colour = None
 
 help_description_colour = None
 
 colourise_output = colourise_output
 
 env_term_colour = None
 
 env_shell_colour = None
 
 env_definition_colour = None
 
str session_name = "main"
 
 session_name_colour = None
 
str old_pwd = os.getcwd()
 
str home = None
 
 ls = HLLs(self.success, self.error)
 
str master_session = "main"
 
str command_seperator_token = "@#"
 
str comment_token = "--"
 
 pipe_input = None
 
list auto_complete_list = []
 
int auto_complete_index = 0
 
str auto_complete_usr_input = ""
 
str auto_complete_default_usr_input = ""
 
str command_description_token_inner = "desc"
 
str colourise_output = "")
 
str current_tty_status = "prompt":
 
bool current_tty_status = True)
 
list history_index = self.history[self.history_index]
 
bool options = True
 

Protected Member Functions

int _set_file_content (self, str file_path, str content, str mode="w", str encoding="utf-8", str newline="\n")
 

Detailed Description

 The class in charge of simulating a tty 

Definition at line 47 of file tty_ov.py.

Constructor & Destructor Documentation

◆ __init__()

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 )

Definition at line 50 of file tty_ov.py.

Member Function Documentation

◆ _set_file_content()

int tty_ov.tty_ov.TTY._set_file_content ( self,
str file_path,
str content,
str mode = "w",
str encoding = "utf-8",
str newline = "\n" )
protected

Definition at line 1453 of file tty_ov.py.

◆ ask_for_env_to_unset()

int tty_ov.tty_ov.TTY.ask_for_env_to_unset ( self)
 Ask for the variable that needs to be removed from the environement 

Definition at line 394 of file tty_ov.py.

◆ assing_colours()

None tty_ov.tty_ov.TTY.assing_colours ( self)
 assing the colours to the variables in charge of managing the displays

Definition at line 1555 of file tty_ov.py.

◆ author()

int tty_ov.tty_ov.TTY.author ( self,
List args )
 Display the author of the program 

Definition at line 241 of file tty_ov.py.

◆ bind_ls()

int tty_ov.tty_ov.TTY.bind_ls ( self,
List args )
 Bind the ls function to the ls command 

Definition at line 1271 of file tty_ov.py.

◆ cd_access_directory()

int tty_ov.tty_ov.TTY.cd_access_directory ( self,
str path )
 Access a directory based on the provided path 

Definition at line 1092 of file tty_ov.py.

◆ cd_go_further_than_home()

int tty_ov.tty_ov.TTY.cd_go_further_than_home ( self,
str path )
 The function in charge of changing the current working directory to a directory further than the home directory 

Definition at line 1104 of file tty_ov.py.

◆ cd_rollback()

int tty_ov.tty_ov.TTY.cd_rollback ( self,
str path )
 The function in charge of rolling back the current working directory to the previous one 

Definition at line 1117 of file tty_ov.py.

◆ change_directory()

int tty_ov.tty_ov.TTY.change_directory ( self,
List args )
 The function in charge of changing the current working directory 

Definition at line 1128 of file tty_ov.py.

◆ check_admin()

int tty_ov.tty_ov.TTY.check_admin ( self,
List args )
 Check if the program has admin rights 

Definition at line 1407 of file tty_ov.py.

◆ check_file_path()

int tty_ov.tty_ov.TTY.check_file_path ( self,
str file_path )
 Check the path leading to the file to make sure the path exists 

Definition at line 799 of file tty_ov.py.

◆ check_if_admin_for_windows()

bool tty_ov.tty_ov.TTY.check_if_admin_for_windows ( self)
 Check if the current windows user has admin rights 

Definition at line 1360 of file tty_ov.py.

◆ clean_string()

str tty_ov.tty_ov.TTY.clean_string ( self,
str input_string )
 remove enclosing string from the run string 

Definition at line 1997 of file tty_ov.py.

◆ client()

int tty_ov.tty_ov.TTY.client ( self,
List args )
 Display the client of the program 

Definition at line 261 of file tty_ov.py.

◆ command_seperator()

int tty_ov.tty_ov.TTY.command_seperator ( self,
List args )
 Display/Change the token in charge of indicating the beginning of a new command when many are put together 

Definition at line 1589 of file tty_ov.py.

◆ commands_to_auto_complete()

None tty_ov.tty_ov.TTY.commands_to_auto_complete ( self)
 Convert the available commands to a list so that it can be used for command auto-completion 

Definition at line 1734 of file tty_ov.py.

◆ create_a_file()

int tty_ov.tty_ov.TTY.create_a_file ( self,
str filename )
 Create a file based on the name 

Definition at line 805 of file tty_ov.py.

◆ create_directories()

int tty_ov.tty_ov.TTY.create_directories ( self,
str path,
bool show_if_created = True )
 Create the required directories 

Definition at line 697 of file tty_ov.py.

◆ create_key_prompt_bindings()

None tty_ov.tty_ov.TTY.create_key_prompt_bindings ( self)
 Set up the functions in charge of changing the prompt with the content of the history command 

Definition at line 1223 of file tty_ov.py.

◆ display_prompt()

None tty_ov.tty_ov.TTY.display_prompt ( self)
 The function in charge of displaying a basic prompt to ask the user to enter an option 

Definition at line 1258 of file tty_ov.py.

◆ display_status_code()

None tty_ov.tty_ov.TTY.display_status_code ( self,
List args )
 Display the status code of the last function 

Definition at line 505 of file tty_ov.py.

◆ display_status_in_prompt()

None tty_ov.tty_ov.TTY.display_status_in_prompt ( self)
 Display the return code of the previous function 

Definition at line 1213 of file tty_ov.py.

◆ env()

int tty_ov.tty_ov.TTY.env ( self,
List args )
 Display the environement variables 

Definition at line 284 of file tty_ov.py.

◆ env_plus_plus()

int tty_ov.tty_ov.TTY.env_plus_plus ( self,
List args )
 Display the environement variables 

Definition at line 313 of file tty_ov.py.

◆ exit()

int tty_ov.tty_ov.TTY.exit ( self,
List args )
 The function in charge of exiting the layer in which the user is located 

Definition at line 1172 of file tty_ov.py.

◆ function_help()

None tty_ov.tty_ov.TTY.function_help ( self,
str function_name,
str description )
 The function in charge of displaying the help for a specific function 

Definition at line 554 of file tty_ov.py.

◆ get_current_folder()

str tty_ov.tty_ov.TTY.get_current_folder ( self)
 Return the current folder 

Definition at line 1266 of file tty_ov.py.

◆ get_the_home_path()

None tty_ov.tty_ov.TTY.get_the_home_path ( self)
 Get the path of the HOME variable based on the system 

Definition at line 1721 of file tty_ov.py.

◆ goodbye_message()

None tty_ov.tty_ov.TTY.goodbye_message ( self)
 Display a goodbye message on the exit of the main terminal 

Definition at line 1945 of file tty_ov.py.

◆ hello_world()

int tty_ov.tty_ov.TTY.hello_world ( self,
List args )
 This is a function in charge of displaying a Hello World and the passed arguments 

Definition at line 1294 of file tty_ov.py.

◆ help()

int tty_ov.tty_ov.TTY.help ( self,
List args )
 The help function in charge of displaying the available options to the user 

Definition at line 632 of file tty_ov.py.

◆ help_help()

None tty_ov.tty_ov.TTY.help_help ( self)
 Display the help on the help function 

Definition at line 561 of file tty_ov.py.

◆ help_prompt()

None tty_ov.tty_ov.TTY.help_prompt ( self)
 Display the help on the prompt function 

Definition at line 583 of file tty_ov.py.

◆ import_functions_into_shell()

int tty_ov.tty_ov.TTY.import_functions_into_shell ( self,
List[Dict[str, any]] functions )
 Import functions into the shell 

Definition at line 1900 of file tty_ov.py.

◆ is_admin()

bool tty_ov.tty_ov.TTY.is_admin ( self)
 Check if the user has admin rights 

Definition at line 1376 of file tty_ov.py.

◆ is_exactly_in_string()

bool tty_ov.tty_ov.TTY.is_exactly_in_string ( self,
str string1,
str string2 )
 Check if string1 is exactly in string2 

Definition at line 1521 of file tty_ov.py.

◆ kill()

int tty_ov.tty_ov.TTY.kill ( self,
List args )
 The function in charge of abruptly stopping the program (not recommended) 

Definition at line 1194 of file tty_ov.py.

◆ list_to_str()

str tty_ov.tty_ov.TTY.list_to_str ( self,
List[any] hl_list,
str join = " " )
 Convert a list to a string 

Definition at line 143 of file tty_ov.py.

◆ load_basics()

None tty_ov.tty_ov.TTY.load_basics ( self)
 set the values for the variables that can be configured by the user 

Definition at line 1740 of file tty_ov.py.

◆ mainloop()

int tty_ov.tty_ov.TTY.mainloop ( self,
session_name = "main" )
 The mainloop allowing the terminal to run like any other terminals 

Definition at line 2020 of file tty_ov.py.

◆ make_directory()

int tty_ov.tty_ov.TTY.make_directory ( self,
List args )
 Create a directory 

Definition at line 731 of file tty_ov.py.

◆ print_on_tty()

None tty_ov.tty_ov.TTY.print_on_tty ( self,
str colour,
str string )
 The function in charge of displaying a string on the tty 

Definition at line 129 of file tty_ov.py.

◆ process_complex_input()

None tty_ov.tty_ov.TTY.process_complex_input ( self,
List usr_input )
 process multiple command input if provided 

Definition at line 1961 of file tty_ov.py.

◆ process_help_call()

int tty_ov.tty_ov.TTY.process_help_call ( self,
List args )
 Process the inputs for the help calls 

Definition at line 608 of file tty_ov.py.

◆ process_if_arg_input()

None tty_ov.tty_ov.TTY.process_if_arg_input ( self)
 Check if the argv contains arguments input 

Definition at line 1983 of file tty_ov.py.

◆ process_if_pipe_input()

None tty_ov.tty_ov.TTY.process_if_pipe_input ( self)
 Check if the user input is a pipe input 

Definition at line 2010 of file tty_ov.py.

◆ process_input()

None tty_ov.tty_ov.TTY.process_input ( self)
 The function in charge of processing the user input 

Definition at line 1532 of file tty_ov.py.

◆ process_key_inputs()

str tty_ov.tty_ov.TTY.process_key_inputs ( self)
 act depending on the special keys pressed or if entered is pressed 

Definition at line 1250 of file tty_ov.py.

◆ process_session_name()

int tty_ov.tty_ov.TTY.process_session_name ( self,
List args )
 Change the name of the current session 

Definition at line 203 of file tty_ov.py.

◆ pwd()

int tty_ov.tty_ov.TTY.pwd ( self,
List args )
 The function in charge of displaying the current working directory 

Definition at line 665 of file tty_ov.py.

◆ remove_a_directory()

int tty_ov.tty_ov.TTY.remove_a_directory ( self,
str directory_path )
 Remove a directory (child function)

Definition at line 921 of file tty_ov.py.

◆ remove_an_item()

int tty_ov.tty_ov.TTY.remove_an_item ( self,
str path )
 Remove an item 

Definition at line 998 of file tty_ov.py.

◆ remove_directory()

int tty_ov.tty_ov.TTY.remove_directory ( self,
List args )
 Remove a directory 

Definition at line 929 of file tty_ov.py.

◆ remove_file()

int tty_ov.tty_ov.TTY.remove_file ( self,
List args )
 Remove a file or a directory 

Definition at line 1023 of file tty_ov.py.

◆ remove_function_from_options()

int tty_ov.tty_ov.TTY.remove_function_from_options ( self,
Dict[str, any] function )
 Remove a function from the options 

Definition at line 1917 of file tty_ov.py.

◆ remove_functions_from_shell()

int tty_ov.tty_ov.TTY.remove_functions_from_shell ( self,
List[Dict[str, any]] functions )
 Remove functions from the shell 

Definition at line 1934 of file tty_ov.py.

◆ run_as_admin()

int tty_ov.tty_ov.TTY.run_as_admin ( self,
List args )
 Run a command as an administrator 

Definition at line 1458 of file tty_ov.py.

◆ run_as_windows_admin()

int tty_ov.tty_ov.TTY.run_as_windows_admin ( self,
str file )
 Run a powershell script as an administrator 

Definition at line 1388 of file tty_ov.py.

◆ run_command()

int tty_ov.tty_ov.TTY.run_command ( self,
List args )
 Run a command in the host's shell environement 

Definition at line 1318 of file tty_ov.py.

◆ run_complex_input()

None tty_ov.tty_ov.TTY.run_complex_input ( self,
List[str] complex_input )
 Run a complex input 

Definition at line 1955 of file tty_ov.py.

◆ run_external_command()

int tty_ov.tty_ov.TTY.run_external_command ( self,
str command )
 The function in charge of executing command on the host system in a contained manner 

Definition at line 136 of file tty_ov.py.

◆ sanitize_directory_path()

str tty_ov.tty_ov.TTY.sanitize_directory_path ( self,
str dir_name )
 Replace characters that could break the creation by 

Definition at line 684 of file tty_ov.py.

◆ save_to_file()

int tty_ov.tty_ov.TTY.save_to_file ( self,
str data,
str filepath )
 Save data to a file 

Definition at line 1429 of file tty_ov.py.

◆ session_admin()

None tty_ov.tty_ov.TTY.session_admin ( self)
 Display the level of the program 

Definition at line 304 of file tty_ov.py.

◆ setenv()

int tty_ov.tty_ov.TTY.setenv ( self,
List args )
 Function in charge of setting a variable in the environement of the shell 

Definition at line 337 of file tty_ov.py.

◆ show_history()

int tty_ov.tty_ov.TTY.show_history ( self,
List args )
 Display the history of the commands 

Definition at line 173 of file tty_ov.py.

◆ title()

None tty_ov.tty_ov.TTY.title ( self)
 The boot tile 

Definition at line 1703 of file tty_ov.py.

◆ touch()

int tty_ov.tty_ov.TTY.touch ( self,
List arg )
 Create a file in the present path 

Definition at line 848 of file tty_ov.py.

◆ unload_basics()

int tty_ov.tty_ov.TTY.unload_basics ( self)
 Free the ressources that were previously allocated 

Definition at line 1878 of file tty_ov.py.

◆ unset_single_variable()

int tty_ov.tty_ov.TTY.unset_single_variable ( self,
str argument )
 Unset a single variable 

Definition at line 387 of file tty_ov.py.

◆ unsetenv()

int tty_ov.tty_ov.TTY.unsetenv ( self,
List args )
 Function in charge of unsetting a variable in the environement of the shell 

Definition at line 421 of file tty_ov.py.

◆ update_comment_token()

int tty_ov.tty_ov.TTY.update_comment_token ( self,
List args )
 Display/Change the token in charge of indicating the beginning of a new comment 

Definition at line 1650 of file tty_ov.py.

◆ version()

int tty_ov.tty_ov.TTY.version ( self,
List args )
 Display the version of the program 

Definition at line 153 of file tty_ov.py.

Field Documentation

◆ ask_question

tty_ov.tty_ov.TTY.ask_question = ask_question

Definition at line 70 of file tty_ov.py.

◆ auto_complete_default_usr_input

str tty_ov.tty_ov.TTY.auto_complete_default_usr_input = ""

Definition at line 125 of file tty_ov.py.

◆ auto_complete_index

int tty_ov.tty_ov.TTY.auto_complete_index = 0

Definition at line 123 of file tty_ov.py.

◆ auto_complete_list

list tty_ov.tty_ov.TTY.auto_complete_list = []

Definition at line 122 of file tty_ov.py.

◆ auto_complete_usr_input

str tty_ov.tty_ov.TTY.auto_complete_usr_input = ""

Definition at line 124 of file tty_ov.py.

◆ client_name

str tty_ov.tty_ov.TTY.client_name = "(c) OpenValue"

Definition at line 55 of file tty_ov.py.

◆ colour_lib

tty_ov.tty_ov.TTY.colour_lib = colour_lib

Definition at line 69 of file tty_ov.py.

◆ colourise_output [1/2]

tty_ov.tty_ov.TTY.colourise_output = colourise_output

Definition at line 100 of file tty_ov.py.

◆ colourise_output [2/2]

str tty_ov.tty_ov.TTY.colourise_output = "")

Definition at line 131 of file tty_ov.py.

◆ colours

tty_ov.tty_ov.TTY.colours = self.colour_lib.unix_colour_pallet

Definition at line 74 of file tty_ov.py.

◆ command_description_token_inner

str tty_ov.tty_ov.TTY.command_description_token_inner = "desc"

Definition at line 127 of file tty_ov.py.

◆ command_seperator_token

tty_ov.tty_ov.TTY.command_seperator_token = "@#"

Definition at line 116 of file tty_ov.py.

◆ comment_token

tty_ov.tty_ov.TTY.comment_token = "--"

Definition at line 118 of file tty_ov.py.

◆ continue_tty_loop

bool tty_ov.tty_ov.TTY.continue_tty_loop = True

Definition at line 66 of file tty_ov.py.

◆ current_tty_status [1/3]

str tty_ov.tty_ov.TTY.current_tty_status = self.success

Definition at line 67 of file tty_ov.py.

◆ current_tty_status [2/3]

str tty_ov.tty_ov.TTY.current_tty_status = "prompt":

Definition at line 613 of file tty_ov.py.

◆ current_tty_status [3/3]

bool tty_ov.tty_ov.TTY.current_tty_status = True)

Definition at line 712 of file tty_ov.py.

◆ default_colour

tty_ov.tty_ov.TTY.default_colour = None

Definition at line 79 of file tty_ov.py.

◆ enable_multi_command_help

bool tty_ov.tty_ov.TTY.enable_multi_command_help = True

Definition at line 94 of file tty_ov.py.

◆ env_definition_colour

tty_ov.tty_ov.TTY.env_definition_colour = None

Definition at line 104 of file tty_ov.py.

◆ env_shell_colour

tty_ov.tty_ov.TTY.env_shell_colour = None

Definition at line 103 of file tty_ov.py.

◆ env_term_colour

tty_ov.tty_ov.TTY.env_term_colour = None

Definition at line 102 of file tty_ov.py.

◆ err

tty_ov.tty_ov.TTY.err = err

Definition at line 63 of file tty_ov.py.

◆ error

tty_ov.tty_ov.TTY.error = error

Definition at line 64 of file tty_ov.py.

◆ error_colour

tty_ov.tty_ov.TTY.error_colour = None

Definition at line 80 of file tty_ov.py.

◆ help_command_colour

tty_ov.tty_ov.TTY.help_command_colour = None

Definition at line 97 of file tty_ov.py.

◆ help_description_colour

tty_ov.tty_ov.TTY.help_description_colour = None

Definition at line 98 of file tty_ov.py.

◆ help_function_child_name

str tty_ov.tty_ov.TTY.help_function_child_name = "help"

Definition at line 88 of file tty_ov.py.

◆ help_help_options

list tty_ov.tty_ov.TTY.help_help_options
Initial value:
= [
"help", "man", ".help",
".h", "/?", "-h",
"--h", "-help", "--help"
]

Definition at line 89 of file tty_ov.py.

◆ help_title_colour

tty_ov.tty_ov.TTY.help_title_colour = None

Definition at line 96 of file tty_ov.py.

◆ history

tty_ov.tty_ov.TTY.history = []

Definition at line 58 of file tty_ov.py.

◆ history_index [1/2]

int tty_ov.tty_ov.TTY.history_index = 0

Definition at line 60 of file tty_ov.py.

◆ history_index [2/2]

list tty_ov.tty_ov.TTY.history_index = self.history[self.history_index]

Definition at line 1237 of file tty_ov.py.

◆ home

str tty_ov.tty_ov.TTY.home = None

Definition at line 110 of file tty_ov.py.

◆ info_colour

tty_ov.tty_ov.TTY.info_colour = None

Definition at line 82 of file tty_ov.py.

◆ input_split_char

str tty_ov.tty_ov.TTY.input_split_char = " "

Definition at line 86 of file tty_ov.py.

◆ ls

tty_ov.tty_ov.TTY.ls = HLLs(self.success, self.error)

Definition at line 112 of file tty_ov.py.

◆ master_session

str tty_ov.tty_ov.TTY.master_session = "main"

Definition at line 114 of file tty_ov.py.

◆ old_pwd

str tty_ov.tty_ov.TTY.old_pwd = os.getcwd()

Definition at line 109 of file tty_ov.py.

◆ options [1/2]

list tty_ov.tty_ov.TTY.options = []

Definition at line 72 of file tty_ov.py.

◆ options [2/2]

bool tty_ov.tty_ov.TTY.options = True

Definition at line 1543 of file tty_ov.py.

◆ pipe_input

tty_ov.tty_ov.TTY.pipe_input = None

Definition at line 120 of file tty_ov.py.

◆ program_author

str tty_ov.tty_ov.TTY.program_author = "(c) Henry Letellier"

Definition at line 56 of file tty_ov.py.

◆ program_version

str tty_ov.tty_ov.TTY.program_version = self.__version__

Definition at line 54 of file tty_ov.py.

◆ prompt_colour

tty_ov.tty_ov.TTY.prompt_colour = None

Definition at line 78 of file tty_ov.py.

◆ prompt_history

tty_ov.tty_ov.TTY.prompt_history = InMemoryHistory()

Definition at line 59 of file tty_ov.py.

◆ reset_colour

tty_ov.tty_ov.TTY.reset_colour = None

Definition at line 77 of file tty_ov.py.

◆ session_name

str tty_ov.tty_ov.TTY.session_name = "main"

Definition at line 106 of file tty_ov.py.

◆ session_name_colour

tty_ov.tty_ov.TTY.session_name_colour = None

Definition at line 107 of file tty_ov.py.

◆ success

tty_ov.tty_ov.TTY.success = success

Definition at line 62 of file tty_ov.py.

◆ success_colour

tty_ov.tty_ov.TTY.success_colour = None

Definition at line 81 of file tty_ov.py.

◆ tty_colours

tty_ov.tty_ov.TTY.tty_colours = colours

Definition at line 75 of file tty_ov.py.

◆ user_input

str tty_ov.tty_ov.TTY.user_input = ""

Definition at line 84 of file tty_ov.py.

◆ user_session

tty_ov.tty_ov.TTY.user_session = prompt_toolkit.PromptSession()

Definition at line 85 of file tty_ov.py.


The documentation for this class was generated from the following file: