hspylib-clitt 0.9.126__py3-none-any.whl → 0.9.128__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hspylib-clitt might be problematic. Click here for more details.
- clitt/.version +1 -1
- clitt/__classpath__.py +1 -1
- clitt/__init__.py +2 -2
- clitt/__main__.py +1 -1
- clitt/addons/__init__.py +2 -2
- clitt/addons/appman/__init__.py +2 -2
- clitt/addons/appman/appman.py +1 -1
- clitt/addons/appman/appman_enums.py +1 -1
- clitt/addons/appman/templates/__init__.py +2 -2
- clitt/addons/widman/__init__.py +2 -2
- clitt/addons/widman/widget.py +1 -1
- clitt/addons/widman/widget_entry.py +1 -1
- clitt/addons/widman/widgets/__init__.py +2 -2
- clitt/addons/widman/widgets/widget_free.py +1 -1
- clitt/addons/widman/widgets/widget_punch.py +1 -1
- clitt/addons/widman/widgets/widget_send_msg.py +1 -1
- clitt/addons/widman/widgets/widget_time_calc.py +1 -1
- clitt/addons/widman/widman.py +1 -1
- clitt/core/__init__.py +2 -2
- clitt/core/exception/__init__.py +2 -2
- clitt/core/exception/exceptions.py +1 -1
- clitt/core/icons/__init__.py +2 -2
- clitt/core/icons/emojis/__init__.py +2 -2
- clitt/core/icons/emojis/emojis.py +1 -1
- clitt/core/icons/emojis/face_smiling.py +1 -1
- clitt/core/icons/font_awesome/__init__.py +2 -2
- clitt/core/icons/font_awesome/app_icons.py +1 -1
- clitt/core/icons/font_awesome/awesome.py +1 -1
- clitt/core/icons/font_awesome/dashboard_icons.py +1 -1
- clitt/core/icons/font_awesome/form_icons.py +1 -1
- clitt/core/icons/font_awesome/game_icons.py +1 -1
- clitt/core/icons/font_awesome/nav_icons.py +1 -1
- clitt/core/icons/font_awesome/trickplay_icons.py +1 -1
- clitt/core/icons/font_awesome/widget_icons.py +1 -1
- clitt/core/preferences.py +1 -1
- clitt/core/term/__init__.py +2 -2
- clitt/core/term/commons.py +1 -1
- clitt/core/term/cursor.py +18 -8
- clitt/core/term/screen.py +1 -1
- clitt/core/term/terminal.py +8 -4
- clitt/core/tui/__init__.py +2 -2
- clitt/core/tui/line_input/__init__.py +2 -2
- clitt/core/tui/line_input/keyboard_input.py +122 -86
- clitt/core/tui/line_input/line_input.py +1 -1
- clitt/core/tui/mchoose/__init__.py +2 -2
- clitt/core/tui/mchoose/mchoose.py +1 -1
- clitt/core/tui/mchoose/menu_choose.py +1 -1
- clitt/core/tui/mdashboard/__init__.py +2 -2
- clitt/core/tui/mdashboard/dashboard_builder.py +1 -1
- clitt/core/tui/mdashboard/dashboard_item.py +1 -1
- clitt/core/tui/mdashboard/mdashboard.py +1 -1
- clitt/core/tui/mdashboard/menu_dashboard.py +1 -1
- clitt/core/tui/menu/__init__.py +2 -2
- clitt/core/tui/menu/tui_menu.py +1 -1
- clitt/core/tui/menu/tui_menu_action.py +1 -1
- clitt/core/tui/menu/tui_menu_factory.py +1 -1
- clitt/core/tui/menu/tui_menu_item.py +1 -1
- clitt/core/tui/menu/tui_menu_ui.py +1 -1
- clitt/core/tui/menu/tui_menu_view.py +1 -1
- clitt/core/tui/minput/__init__.py +2 -2
- clitt/core/tui/minput/access_type.py +1 -1
- clitt/core/tui/minput/field_builder.py +1 -1
- clitt/core/tui/minput/form_builder.py +1 -1
- clitt/core/tui/minput/form_field.py +1 -1
- clitt/core/tui/minput/input_type.py +1 -1
- clitt/core/tui/minput/input_validator.py +1 -1
- clitt/core/tui/minput/menu_input.py +1 -1
- clitt/core/tui/minput/minput.py +1 -1
- clitt/core/tui/minput/minput_utils.py +1 -1
- clitt/core/tui/mselect/__init__.py +2 -2
- clitt/core/tui/mselect/menu_select.py +1 -1
- clitt/core/tui/mselect/mselect.py +1 -1
- clitt/core/tui/table/__init__.py +2 -2
- clitt/core/tui/table/table_enums.py +1 -1
- clitt/core/tui/table/table_renderer.py +1 -1
- clitt/core/tui/tui_application.py +3 -3
- clitt/core/tui/tui_component.py +29 -19
- clitt/core/tui/tui_preferences.py +1 -1
- clitt/utils/__init__.py +2 -2
- {hspylib_clitt-0.9.126.dist-info → hspylib_clitt-0.9.128.dist-info}/METADATA +2 -2
- hspylib_clitt-0.9.128.dist-info/RECORD +97 -0
- {hspylib_clitt-0.9.126.dist-info → hspylib_clitt-0.9.128.dist-info}/WHEEL +1 -1
- hspylib_clitt-0.9.126.dist-info/RECORD +0 -97
- {hspylib_clitt-0.9.126.dist-info → hspylib_clitt-0.9.128.dist-info}/top_level.txt +0 -0
clitt/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.128
|
clitt/__classpath__.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt
|
|
7
7
|
@file: __classpath__.py
|
|
8
8
|
@created: Fri, 23 Dec 2022
|
|
9
|
-
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: "https://github.com/yorevs/hspylib")
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/__init__.py
CHANGED
clitt/__main__.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: hspylib
|
|
7
7
|
@file: __main__.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/addons/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.addons
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'appman',
|
|
10
10
|
'widman'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.128'
|
clitt/addons/appman/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.addons.appman
|
|
6
6
|
"""Package initialization."""
|
|
@@ -10,4 +10,4 @@ __all__ = [
|
|
|
10
10
|
'appman_enums',
|
|
11
11
|
'templates'
|
|
12
12
|
]
|
|
13
|
-
__version__ = '0.9.
|
|
13
|
+
__version__ = '0.9.128'
|
clitt/addons/appman/appman.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.appman
|
|
7
7
|
@file: appman.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.appman
|
|
7
7
|
@file: appman_enums.py
|
|
8
8
|
@created: Fri, 29 Jul 2022
|
|
9
|
-
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: "https://github.com/yorevs/hspylib")
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/addons/widman/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.addons.widman
|
|
6
6
|
"""Package initialization."""
|
|
@@ -11,4 +11,4 @@ __all__ = [
|
|
|
11
11
|
'widgets',
|
|
12
12
|
'widman'
|
|
13
13
|
]
|
|
14
|
-
__version__ = '0.9.
|
|
14
|
+
__version__ = '0.9.128'
|
clitt/addons/widman/widget.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman
|
|
7
7
|
@file: widget.py
|
|
8
8
|
@created: Fri, 29 Jul 2022
|
|
9
|
-
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: "https://github.com/yorevs/hspylib")
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman
|
|
7
7
|
@file: widget_entry.py
|
|
8
8
|
@created: Fri, 04 Jun 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.addons.widman.widgets
|
|
6
6
|
"""Package initialization."""
|
|
@@ -11,4 +11,4 @@ __all__ = [
|
|
|
11
11
|
'widget_send_msg',
|
|
12
12
|
'widget_time_calc'
|
|
13
13
|
]
|
|
14
|
-
__version__ = '0.9.
|
|
14
|
+
__version__ = '0.9.128'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman.widgets
|
|
7
7
|
@file: widget_free.py
|
|
8
8
|
@created: Thu, 20 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman.widgets
|
|
7
7
|
@file: widget_punch.py
|
|
8
8
|
@created: Thu, 20 Sep 2022
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman.widgets
|
|
7
7
|
@file: widget_send_msg.py
|
|
8
8
|
@created: Thu, 26 Aug 2017
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman.widgets
|
|
7
7
|
@file: widget_time_calc.py
|
|
8
8
|
@created: Thu, 20 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/addons/widman/widman.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.addons.widman
|
|
7
7
|
@file: widman.py
|
|
8
8
|
@created: Thu, 20 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/core/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core
|
|
6
6
|
"""Package initialization."""
|
|
@@ -12,4 +12,4 @@ __all__ = [
|
|
|
12
12
|
'term',
|
|
13
13
|
'tui'
|
|
14
14
|
]
|
|
15
|
-
__version__ = '0.9.
|
|
15
|
+
__version__ = '0.9.128'
|
clitt/core/exception/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.exception
|
|
6
6
|
"""Package initialization."""
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
__all__ = [
|
|
9
9
|
'exceptions'
|
|
10
10
|
]
|
|
11
|
-
__version__ = '0.9.
|
|
11
|
+
__version__ = '0.9.128'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.exceptions
|
|
7
7
|
@file: exceptions.py
|
|
8
8
|
@created: Fri, 7 Jul 2023
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/core/icons/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.icons
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'emojis',
|
|
10
10
|
'font_awesome'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.128'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.icons.emojis
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'emojis',
|
|
10
10
|
'face_smiling'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.128'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.emojis
|
|
7
7
|
@file: emojis.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.emojis
|
|
7
7
|
@file: face_smiling.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.icons.font_awesome
|
|
6
6
|
"""Package initialization."""
|
|
@@ -15,4 +15,4 @@ __all__ = [
|
|
|
15
15
|
'trickplay_icons',
|
|
16
16
|
'widget_icons'
|
|
17
17
|
]
|
|
18
|
-
__version__ = '0.9.
|
|
18
|
+
__version__ = '0.9.128'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: app_icons.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: awesome.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: dashboard_icons.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: form_icons.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: game_icons.py
|
|
8
8
|
@created: Thu, 20 Jul 2023
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: nav_icons.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: trickplay_icons.py
|
|
8
8
|
@created: Tue, 4 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core.icons.font_awesome
|
|
7
7
|
@file: widget_icons.py
|
|
8
8
|
@created: Thu, 20 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/core/preferences.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: clitt.core
|
|
7
7
|
@file: preferences.py
|
|
8
8
|
@created: Fri, 7 Jul 2023
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/core/term/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.term
|
|
6
6
|
"""Package initialization."""
|
|
@@ -11,4 +11,4 @@ __all__ = [
|
|
|
11
11
|
'screen',
|
|
12
12
|
'terminal'
|
|
13
13
|
]
|
|
14
|
-
__version__ = '0.9.
|
|
14
|
+
__version__ = '0.9.128'
|
clitt/core/term/commons.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: hspylib-clitt.main.clitt.core.term
|
|
7
7
|
@file: commons.py
|
|
8
8
|
@created: Wed, 20 Mar 2024
|
|
9
|
-
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: "https://github.com/yorevs/hspylib")
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/core/term/cursor.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: hspylib-clitt.main.clitt.core.term
|
|
7
7
|
@file: cursor.py
|
|
8
8
|
@created: Wed, 20 Mar 2024
|
|
9
|
-
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: "https://github.com/yorevs/hspylib")
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -126,27 +126,28 @@ class Cursor(metaclass=Singleton):
|
|
|
126
126
|
self.position = get_cursor_position() or self.position
|
|
127
127
|
return self.position
|
|
128
128
|
|
|
129
|
-
def write(self, obj: Any, end: str = "") -> Position:
|
|
129
|
+
def write(self, obj: Any = "", end: str = "", markdown: bool = False) -> Position:
|
|
130
130
|
"""Write the string representation of the object to the screen.
|
|
131
131
|
:param obj the object to be written.
|
|
132
132
|
:param end string appended after the last value, default a newline.
|
|
133
|
+
:param markdown: whether to print a markdown render.
|
|
133
134
|
:return the cursor position after writing.
|
|
134
135
|
"""
|
|
135
|
-
sysout(obj, end=end)
|
|
136
|
-
text = (str(obj) + end)
|
|
137
|
-
|
|
138
|
-
text_offset = len(text[max(0, last_index_of(text, os.linesep)) :])
|
|
136
|
+
sysout(obj, end=end, markdown=markdown)
|
|
137
|
+
text: str = self.cleanup_text(str(obj) + end)
|
|
138
|
+
text_offset: int = self.offset_text(text)
|
|
139
139
|
self.position = self.position[0] + text.count(os.linesep), text_offset + (
|
|
140
140
|
self.position[1] if text.count(os.linesep) == 0 else 0
|
|
141
141
|
)
|
|
142
142
|
return self.position
|
|
143
143
|
|
|
144
|
-
def writeln(self, obj: Any) -> Position:
|
|
144
|
+
def writeln(self, obj: Any = "", markdown: bool = False) -> Position:
|
|
145
145
|
"""Write the string representation of the object to the screen, appending a new line.
|
|
146
146
|
:param obj the object to be written.
|
|
147
|
+
:param markdown: whether to print a markdown render.
|
|
147
148
|
:return the cursor position after writing.
|
|
148
149
|
"""
|
|
149
|
-
return self.write(obj, end=os.linesep)
|
|
150
|
+
return self.write(obj, end=os.linesep, markdown=markdown)
|
|
150
151
|
|
|
151
152
|
def save(self) -> Position:
|
|
152
153
|
"""Save the current cursor position and attributes.
|
|
@@ -170,5 +171,14 @@ class Cursor(metaclass=Singleton):
|
|
|
170
171
|
sysout(Vt100.mode(0), end=end)
|
|
171
172
|
return self.position
|
|
172
173
|
|
|
174
|
+
def cleanup_text(self, text: str) -> str:
|
|
175
|
+
"""TODO"""
|
|
176
|
+
return VtColor.strip_colors(VtCode.strip_codes(text.replace("%EOL%", os.linesep)))
|
|
177
|
+
|
|
178
|
+
def offset_text(self, text: str) -> int:
|
|
179
|
+
"""TODO"""
|
|
180
|
+
text: str = self.cleanup_text(text)
|
|
181
|
+
return len(text[max(0, last_index_of(text, os.linesep)):])
|
|
182
|
+
|
|
173
183
|
|
|
174
184
|
assert (cursor := Cursor().INSTANCE) is not None, "Failed to create Cursor instance"
|
clitt/core/term/screen.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: hspylib-clitt.main.clitt.core.term
|
|
7
7
|
@file: screen.py
|
|
8
8
|
@created: Wed, 20 Mar 2024
|
|
9
|
-
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: "<B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: "https://github.com/yorevs/hspylib")
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
clitt/core/term/terminal.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@package: hspylib.modules.cli.vt100
|
|
7
7
|
@file: terminal.py
|
|
8
8
|
@created: Tue, 11 May 2021
|
|
9
|
-
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior
|
|
10
10
|
@site: https://github.com/yorevs/hspylib
|
|
11
11
|
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
12
|
|
|
@@ -177,9 +177,13 @@ class Terminal(metaclass=Singleton):
|
|
|
177
177
|
cls.INSTANCE.screen.clear()
|
|
178
178
|
|
|
179
179
|
@classmethod
|
|
180
|
-
def echo(cls, obj: Any, end: str = os.linesep) -> None:
|
|
181
|
-
"""Write the string representation of the object to the screen.
|
|
182
|
-
|
|
180
|
+
def echo(cls, obj: Any = "", end: str = os.linesep, markdown: bool = False) -> None:
|
|
181
|
+
"""Write the string representation of the object to the screen.
|
|
182
|
+
:param obj the object to be written.
|
|
183
|
+
:param end string appended after the last value, default a newline.
|
|
184
|
+
:param markdown: whether to print a markdown render.
|
|
185
|
+
"""
|
|
186
|
+
cls.INSTANCE.screen.cursor.write(obj, end=end, markdown=markdown)
|
|
183
187
|
|
|
184
188
|
@classmethod
|
|
185
189
|
def alternate_screen(cls, enable: bool) -> None:
|
clitt/core/tui/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui
|
|
6
6
|
"""Package initialization."""
|
|
@@ -17,4 +17,4 @@ __all__ = [
|
|
|
17
17
|
'tui_component',
|
|
18
18
|
'tui_preferences'
|
|
19
19
|
]
|
|
20
|
-
__version__ = '0.9.
|
|
20
|
+
__version__ = '0.9.128'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.128
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.line_input
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'keyboard_input',
|
|
10
10
|
'line_input'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.128'
|