hspylib-clitt 0.9.118__tar.gz → 0.9.120__tar.gz
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.
- {hspylib-clitt-0.9.118/hspylib_clitt.egg-info → hspylib-clitt-0.9.120}/PKG-INFO +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/README.md +1 -1
- hspylib-clitt-0.9.120/clitt/.version +1 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/exception/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/emojis/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/term/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/term/commons.py +11 -12
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/line_input/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/line_input/keyboard_input.py +22 -22
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mchoose/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mdashboard/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mselect/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/table/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/utils/__init__.py +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120/hspylib_clitt.egg-info}/PKG-INFO +2 -2
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/hspylib_clitt.egg-info/top_level.txt +1 -0
- hspylib-clitt-0.9.118/clitt/.version +0 -1
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/MANIFEST.in +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/__classpath__.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/__main__.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/appman.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/appman_enums.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/build.gradle.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/classpath.py.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/dependencies.hspd.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/gitignore.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main.py.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main_qt.py.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main_qt_view.py.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main_qt_view.ui.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/run.sh.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/test_main.py.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/usage.txt.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/widget.py.tpl +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widget.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widget_entry.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/widget_free.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/widget_punch.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/widget_send_msg.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/widget_time_calc.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widman.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/exception/exceptions.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/emojis/emojis.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/emojis/face_smiling.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/app_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/awesome.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/dashboard_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/form_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/game_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/nav_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/trickplay_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/widget_icons.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/preferences.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/term/cursor.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/term/screen.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/term/terminal.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/line_input/line_input.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mchoose/mchoose.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mchoose/menu_choose.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mdashboard/dashboard_builder.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mdashboard/dashboard_item.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mdashboard/mdashboard.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mdashboard/menu_dashboard.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/tui_menu.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/tui_menu_action.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/tui_menu_factory.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/tui_menu_item.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/tui_menu_ui.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/menu/tui_menu_view.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/access_type.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/field_builder.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/form_builder.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/form_field.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/input_type.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/input_validator.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/menu_input.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/minput.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/minput/minput_utils.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mselect/menu_select.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mselect/mselect.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/table/table_enums.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/table/table_renderer.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/tui_application.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/tui_component.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/tui_preferences.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/utils/git_utils.py +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/welcome.txt +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/hspylib_clitt.egg-info/SOURCES.txt +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/hspylib_clitt.egg-info/dependency_links.txt +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/hspylib_clitt.egg-info/requires.txt +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/setup.cfg +0 -0
- {hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hspylib-clitt
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.120
|
|
4
4
|
Summary: HsPyLib - CLI Terminal Tools
|
|
5
5
|
Home-page: https://github.com/yorevs/hspylib
|
|
6
6
|
Author: Hugo Saporetti Junior
|
|
@@ -35,7 +35,7 @@ Requires-Dist: urllib3<2.0.0
|
|
|
35
35
|
## Create professional CLI applications
|
|
36
36
|
|
|
37
37
|
[](LICENSE.md)
|
|
38
|
-
[](CHANGELOG.md#unreleased)
|
|
39
39
|
[](https://pypi.org/project/hspylib-clitt)
|
|
40
40
|
[](https://github.com/yorevs/hspylib)
|
|
41
41
|
[](https://gitter.im/hspylib/community)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Create professional CLI applications
|
|
4
4
|
|
|
5
5
|
[](LICENSE.md)
|
|
6
|
-
[](CHANGELOG.md#unreleased)
|
|
7
7
|
[](https://pypi.org/project/hspylib-clitt)
|
|
8
8
|
[](https://github.com/yorevs/hspylib)
|
|
9
9
|
[](https://gitter.im/hspylib/community)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.120
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -13,18 +13,16 @@
|
|
|
13
13
|
Copyright 2024, HSPyLib team
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
from clitt.core.exception.exceptions import NotATerminalError
|
|
17
|
-
from hspylib.core.enums.enumeration import Enumeration
|
|
18
|
-
from hspylib.core.tools.commons import is_debugging
|
|
19
|
-
from hspylib.modules.cli.vt100.vt_100 import Vt100
|
|
20
|
-
from shutil import get_terminal_size
|
|
21
|
-
from typing import Callable, Tuple, TypeAlias, Union
|
|
22
|
-
|
|
23
|
-
import logging as log
|
|
24
16
|
import re
|
|
25
17
|
import sys
|
|
26
18
|
import termios
|
|
27
19
|
import tty
|
|
20
|
+
from shutil import get_terminal_size
|
|
21
|
+
from typing import Callable, Tuple, TypeAlias, Union
|
|
22
|
+
|
|
23
|
+
from hspylib.core.enums.enumeration import Enumeration
|
|
24
|
+
from hspylib.core.tools.commons import is_debugging
|
|
25
|
+
from hspylib.modules.cli.vt100.vt_100 import Vt100
|
|
28
26
|
|
|
29
27
|
# fmt: off
|
|
30
28
|
Dimension : TypeAlias = Tuple[int, int]
|
|
@@ -37,7 +35,10 @@ EraseDirection : TypeAlias = Union["Direction", "Portion"]
|
|
|
37
35
|
|
|
38
36
|
def is_a_tty() -> bool:
|
|
39
37
|
"""Checks whether we are under a tty environment."""
|
|
40
|
-
|
|
38
|
+
try:
|
|
39
|
+
return sys.stdout.isatty() and sys.stdin.isatty()
|
|
40
|
+
except ValueError:
|
|
41
|
+
return sys.stdout.isatty()
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
class Direction(Enumeration):
|
|
@@ -65,7 +66,6 @@ def get_dimensions(fallback: Tuple[int, int] = (24, 80)) -> Tuple[int, int]:
|
|
|
65
66
|
:return lines, columns
|
|
66
67
|
"""
|
|
67
68
|
if not is_a_tty():
|
|
68
|
-
log.warning(NotATerminalError("get_dimensions:: Requires a terminal (TTY)"))
|
|
69
69
|
return fallback
|
|
70
70
|
dim = get_terminal_size((fallback[1], fallback[0]))
|
|
71
71
|
return dim.lines, dim.columns
|
|
@@ -81,7 +81,6 @@ def get_cursor_position(fallback: Tuple[int, int] = (0, 0)) -> Tuple[int, int]:
|
|
|
81
81
|
return pos
|
|
82
82
|
|
|
83
83
|
if not is_a_tty():
|
|
84
|
-
log.warning(NotATerminalError("get_cursor_position:: Requires a terminal (TTY)"))
|
|
85
84
|
return pos
|
|
86
85
|
|
|
87
86
|
buf, re_query_resp = "", r"^\x1b\[(\d*);(\d*)R"
|
|
@@ -99,7 +98,7 @@ def get_cursor_position(fallback: Tuple[int, int] = (0, 0)) -> Tuple[int, int]:
|
|
|
99
98
|
groups = matches.groups()
|
|
100
99
|
pos = int(groups[0]), int(groups[1])
|
|
101
100
|
except termios.error:
|
|
102
|
-
|
|
101
|
+
pass
|
|
103
102
|
finally:
|
|
104
103
|
if stdin and attrs:
|
|
105
104
|
termios.tcsetattr(stdin, termios.TCSANOW, attrs) # Reset terminal attributes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
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.120'
|
|
@@ -13,14 +13,15 @@
|
|
|
13
13
|
Copyright·(c)·2024,·HSPyLib
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
from clitt.core.term.commons import Direction
|
|
17
|
-
from clitt.core.term.terminal import Terminal
|
|
18
|
-
from clitt.core.tui.tui_component import TUIComponent
|
|
19
|
-
from hspylib.modules.cli.keyboard import Keyboard
|
|
20
|
-
from hspylib.modules.cli.vt100.vt_color import VtColor
|
|
21
16
|
from typing import Dict, List, Optional
|
|
22
17
|
|
|
23
18
|
import pyperclip
|
|
19
|
+
from hspylib.modules.cli.keyboard import Keyboard
|
|
20
|
+
from hspylib.modules.cli.vt100.vt_color import VtColor
|
|
21
|
+
|
|
22
|
+
from clitt.core.term.commons import Direction
|
|
23
|
+
from clitt.core.term.terminal import Terminal
|
|
24
|
+
from clitt.core.tui.tui_component import TUIComponent
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
class KeyboardInput(TUIComponent):
|
|
@@ -41,8 +42,7 @@ class KeyboardInput(TUIComponent):
|
|
|
41
42
|
@staticmethod
|
|
42
43
|
def preload_history(history: List[str]) -> None:
|
|
43
44
|
"""Preload the input with the provided dictionary."""
|
|
44
|
-
|
|
45
|
-
for entry in rev_history:
|
|
45
|
+
for entry in history:
|
|
46
46
|
KeyboardInput._add_history(entry)
|
|
47
47
|
KeyboardInput._HIST_INDEX = 0
|
|
48
48
|
|
|
@@ -120,22 +120,7 @@ class KeyboardInput(TUIComponent):
|
|
|
120
120
|
Terminal.set_show_cursor(show_cursor)
|
|
121
121
|
self.cursor.save()
|
|
122
122
|
|
|
123
|
-
def _loop(self, break_keys: List[Keyboard] = None) -> Keyboard:
|
|
124
|
-
break_keys = break_keys or Keyboard.break_keys()
|
|
125
|
-
keypress = Keyboard.VK_NONE
|
|
126
|
-
|
|
127
|
-
# Wait for user interaction
|
|
128
|
-
while not self._done and keypress and keypress not in break_keys:
|
|
129
|
-
# Menu Renderization
|
|
130
|
-
if self._re_render:
|
|
131
|
-
self.render()
|
|
132
|
-
# Navigation input
|
|
133
|
-
keypress = self.handle_keypress()
|
|
134
|
-
|
|
135
|
-
return keypress
|
|
136
|
-
|
|
137
123
|
def execute(self) -> Optional[str | Keyboard]:
|
|
138
|
-
self.write(f"{self._prompt_color.placeholder}{self.title}{self._text_color.placeholder}")
|
|
139
124
|
self._prepare_render()
|
|
140
125
|
keypress = self._loop() or Keyboard.VK_ESC
|
|
141
126
|
|
|
@@ -150,9 +135,24 @@ class KeyboardInput(TUIComponent):
|
|
|
150
135
|
|
|
151
136
|
return self._input_text
|
|
152
137
|
|
|
138
|
+
def _loop(self, break_keys: List[Keyboard] = None) -> Keyboard:
|
|
139
|
+
break_keys = break_keys or Keyboard.break_keys()
|
|
140
|
+
keypress = Keyboard.VK_NONE
|
|
141
|
+
|
|
142
|
+
# Wait for user interaction
|
|
143
|
+
while not self._done and keypress and keypress not in break_keys:
|
|
144
|
+
# Menu Renderization
|
|
145
|
+
if self._re_render:
|
|
146
|
+
self.render()
|
|
147
|
+
# Navigation input
|
|
148
|
+
keypress = self.handle_keypress()
|
|
149
|
+
|
|
150
|
+
return keypress
|
|
151
|
+
|
|
153
152
|
def render(self) -> None:
|
|
154
153
|
Terminal.set_show_cursor(False)
|
|
155
154
|
self.cursor.restore()
|
|
155
|
+
self.write(f"{self._prompt_color.placeholder}{self.title}{self._text_color.placeholder}")
|
|
156
156
|
self.write(self._input_text)
|
|
157
157
|
self._terminal.cursor.erase(Direction.RIGHT)
|
|
158
158
|
self._re_render = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.mchoose
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'mchoose',
|
|
10
10
|
'menu_choose'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.mdashboard
|
|
6
6
|
"""Package initialization."""
|
|
@@ -11,4 +11,4 @@ __all__ = [
|
|
|
11
11
|
'mdashboard',
|
|
12
12
|
'menu_dashboard'
|
|
13
13
|
]
|
|
14
|
-
__version__ = '0.9.
|
|
14
|
+
__version__ = '0.9.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.menu
|
|
6
6
|
"""Package initialization."""
|
|
@@ -13,4 +13,4 @@ __all__ = [
|
|
|
13
13
|
'tui_menu_ui',
|
|
14
14
|
'tui_menu_view'
|
|
15
15
|
]
|
|
16
|
-
__version__ = '0.9.
|
|
16
|
+
__version__ = '0.9.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.minput
|
|
6
6
|
"""Package initialization."""
|
|
@@ -16,4 +16,4 @@ __all__ = [
|
|
|
16
16
|
'minput',
|
|
17
17
|
'minput_utils'
|
|
18
18
|
]
|
|
19
|
-
__version__ = '0.9.
|
|
19
|
+
__version__ = '0.9.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.mselect
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'menu_select',
|
|
10
10
|
'mselect'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.120
|
|
4
4
|
#
|
|
5
5
|
# Package: main.clitt.core.tui.table
|
|
6
6
|
"""Package initialization."""
|
|
@@ -9,4 +9,4 @@ __all__ = [
|
|
|
9
9
|
'table_enums',
|
|
10
10
|
'table_renderer'
|
|
11
11
|
]
|
|
12
|
-
__version__ = '0.9.
|
|
12
|
+
__version__ = '0.9.120'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hspylib-clitt
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.120
|
|
4
4
|
Summary: HsPyLib - CLI Terminal Tools
|
|
5
5
|
Home-page: https://github.com/yorevs/hspylib
|
|
6
6
|
Author: Hugo Saporetti Junior
|
|
@@ -35,7 +35,7 @@ Requires-Dist: urllib3<2.0.0
|
|
|
35
35
|
## Create professional CLI applications
|
|
36
36
|
|
|
37
37
|
[](LICENSE.md)
|
|
38
|
-
[](CHANGELOG.md#unreleased)
|
|
39
39
|
[](https://pypi.org/project/hspylib-clitt)
|
|
40
40
|
[](https://github.com/yorevs/hspylib)
|
|
41
41
|
[](https://gitter.im/hspylib/community)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.9.118
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/build.gradle.tpl
RENAMED
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/classpath.py.tpl
RENAMED
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/dependencies.hspd.tpl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main_qt.py.tpl
RENAMED
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main_qt_view.py.tpl
RENAMED
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/main_qt_view.ui.tpl
RENAMED
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/appman/templates/test_main.py.tpl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/widget_send_msg.py
RENAMED
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/addons/widman/widgets/widget_time_calc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/dashboard_icons.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/trickplay_icons.py
RENAMED
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/icons/font_awesome/widget_icons.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hspylib-clitt-0.9.118 → hspylib-clitt-0.9.120}/clitt/core/tui/mdashboard/dashboard_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|