Skip to content

Commit

Permalink
line_input bugfixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Saporetti Junior committed May 3, 2024
1 parent 32db257 commit 1b9ae9b
Show file tree
Hide file tree
Showing 46 changed files with 432 additions and 104 deletions.
2 changes: 1 addition & 1 deletion modules/clitt/bumpver.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpver]
current_version = "0.9.122"
current_version = "0.9.124"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "++version {old_version} -> {new_version}"
commit = false
Expand Down
2 changes: 1 addition & 1 deletion modules/clitt/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
app_version = '0.9.122'
app_version = '0.9.124'
app_name = 'hspylib-clitt'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo
"""Package initialization."""
Expand All @@ -11,4 +11,4 @@
'term',
'tui'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/application/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.application
"""Package initialization."""
Expand All @@ -9,4 +9,4 @@
'application_demo',
'snake'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/icons/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.icons
"""Package initialization."""
Expand All @@ -9,4 +9,4 @@
'emojis',
'font_awesome'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/icons/emojis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.icons.emojis
"""Package initialization."""

__all__ = [
'emojis_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/icons/font_awesome/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.icons.font_awesome
"""Package initialization."""
Expand All @@ -9,4 +9,4 @@
'awesome_demo',
'demo_icons'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/term/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.term
"""Package initialization."""

__all__ = [
'terminal_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui
"""Package initialization."""
Expand All @@ -16,4 +16,4 @@
'tui_preferences_demo',
'tui_screen_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/line_input/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.line_input
"""Package initialization."""

__all__ = [
'line_input_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
2 changes: 1 addition & 1 deletion modules/clitt/src/demo/tui/line_input/line_input_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
hist = ["Hugo", "Joao", "Koko", "Hugo", "Koko"]
KeyboardInput.preload_history(hist)
print("-=" * 30)
while (i := line_input("What is it? ", VtColor.YELLOW, VtColor.GREEN, True)) not in ["bye", "", None]:
while (i := line_input("What is it? ", "Input your name", VtColor.YELLOW, VtColor.GREEN, True)) not in ["bye", "", None]:
if isinstance(i, Keyboard):
print("PTT", i)
else:
Expand Down
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/mchoose/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.mchoose
"""Package initialization."""

__all__ = [
'menu_choose_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/mdashboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.mdashboard
"""Package initialization."""

__all__ = [
'menu_dashboard_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/menu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.menu
"""Package initialization."""

__all__ = [
'tui_menu_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/minput/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.minput
"""Package initialization."""
Expand All @@ -9,4 +9,4 @@
'menu_input_demo',
'menu_input_tokens_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/mselect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.mselect
"""Package initialization."""

__all__ = [
'menu_select_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
4 changes: 2 additions & 2 deletions modules/clitt/src/demo/tui/table/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# _*_ coding: utf-8 _*_
#
# hspylib-clitt v0.9.122
# hspylib-clitt v0.9.124
#
# Package: demo.tui.table
"""Package initialization."""

__all__ = [
'table_demo'
]
__version__ = '0.9.122'
__version__ = '0.9.124'
Loading

0 comments on commit 1b9ae9b

Please sign in to comment.