2# +==== BEGIN display_tty =================+
4# ..@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
5# .@...........................#@
6# @############################.@
7# @...........................@.@
8# @..#######################..@.@
9# @.#########################.@.@
10# @.##>_#####################.@.@
11# @.#########################.@.@
12# @.#########################.@.@
13# @.#########################.@.@
14# @.#########################.@.@
15# @..#######################..@.@
16# @...........................@.@
17# @..+----+______________.....@.@
18# @..+....+______________+....@.@
19# @..+----+...................@.@
20# @...........................@.#
21# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.
25# CREATION DATE: 06-11-2025
26# LAST Modified: 12:29:5 06-11-2025
28# A module that allows you to display text with a few boilers (i.e. put your text in a square for titles). It also allows to log to the terminal by wrapping around the logging library.
30# @brief This is the file in charge of containing the constants used in the display_tty library.
31# @details This module defines constants and configuration settings used throughout the display_tty project. It includes error codes, output modes, animation delays,TOML configuration defaults, and forbidden log levels.
33# COPYRIGHT: (c) Henry Letellier
34# PURPOSE: File in charge of containing the constants of the program.
36# +==== END display_tty =================+
51KEY_OUTPUT_MODE =
"OUTPUT_MODE"
52KEY_PRETTIFY_OUTPUT =
"PRETTIFY_OUTPUT"
54KEY_PRETTIFY_OUTPUT_IN_BLOCKS =
"PRETTY_OUTPUT_IN_BLOCS"
58KEY_ANIMATION_DELAY =
'MESSAGE_ANIMATION_DELAY'
60KEY_ANIMATION_DELAY_BLOCKY =
'MESSAGE_ANIMATION_DELAY_BLOCKY'
64 KEY_OUTPUT_MODE: OUT_TTY,
65 KEY_PRETTIFY_OUTPUT:
True,
67 KEY_PRETTIFY_OUTPUT_IN_BLOCKS:
True,
68 KEY_ANIMATION_DELAY: 0.01,
69 KEY_ANIMATION_DELAY_BLOCKY: 0.01,
70 'MESSAGE_CHARACTER':
'@',
71 'MESSAGE_ERROR_CHARACTER':
'#',
72 'MESSAGE_INFORM_CHARACTER':
'i',
73 'MESSAGE_QUESTION_CHARACTER':
'?',
74 'MESSAGE_SUCCESS_CHARACTER':
'/',
75 'MESSAGE_WARNING_CHARACTER':
'!',
76 'SUB_SUB_TITLE_WALL_CHARACTER':
'*',
77 'SUB_TITLE_WALL_CHARACTER':
'@',
78 'TITLE_WALL_CHARACTER':
'#',
79 'TREE_COLUMN_SEPERATOR_CHAR':
'│',
80 'TREE_LINE_SEPERATOR_CHAR':
'─',
81 'TREE_NODE_CHAR':
'├',
82 'TREE_NODE_END_CHAR':
'└',
83 'BOX_NO_VERTICAL':
'#',
84 'BOX_VERTICAL_NO_HORIZONTAL':
'#',
85 'ROUND_BOX_CORNER_LEFT':
'╔',
86 'ROUND_BOX_CORNER_RIGHT':
'╗',
87 'ROUND_BOX_CORNER_BOTTOM_LEFT':
'╚',
88 'ROUND_BOX_CORNER_BOTTOM_RIGHT':
'╝',
89 'ROUND_BOX_HORIZONTAL':
'═',
90 'ROUND_BOX_VERTICAL':
'║',
91 'DIFF_BORDER_LINE_CHARACTER_BOX':
'-',
92 'DIFF_SIDE_LINE_CHARACTER_BOX':
'|',
96FORBIDDEN_NUMBER_LOG_LEVELS_CORRESPONDANCE = {
107FORBIDDEN_NUMBER_LOG_LEVELS = list(
108 FORBIDDEN_NUMBER_LOG_LEVELS_CORRESPONDANCE.values()
114@brief Boolean flag to indicate whether to save output to a file.
120@brief Name of the file where results will be saved if SAVE_TO_FILE is True.
122FILE_NAME =
"run_results.txt"
126@brief File descriptor for the output file.
128FILE_DESCRIPTOR =
None