multiSSH3 5.65__tar.gz → 5.67__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.
- {multissh3-5.65 → multissh3-5.67}/PKG-INFO +1 -1
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.egg-info/PKG-INFO +1 -1
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.py +14 -14
- {multissh3-5.65 → multissh3-5.67}/README.md +0 -0
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.egg-info/SOURCES.txt +0 -0
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.egg-info/dependency_links.txt +0 -0
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.egg-info/entry_points.txt +0 -0
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.egg-info/requires.txt +0 -0
- {multissh3-5.65 → multissh3-5.67}/multiSSH3.egg-info/top_level.txt +0 -0
- {multissh3-5.65 → multissh3-5.67}/setup.cfg +0 -0
- {multissh3-5.65 → multissh3-5.67}/setup.py +0 -0
- {multissh3-5.65 → multissh3-5.67}/test/test.py +0 -0
- {multissh3-5.65 → multissh3-5.67}/test/testCurses.py +0 -0
- {multissh3-5.65 → multissh3-5.67}/test/testCursesOld.py +0 -0
- {multissh3-5.65 → multissh3-5.67}/test/testPerfCompact.py +0 -0
- {multissh3-5.65 → multissh3-5.67}/test/testPerfExpand.py +0 -0
|
@@ -54,10 +54,10 @@ except AttributeError:
|
|
|
54
54
|
# If neither is available, use a dummy decorator
|
|
55
55
|
def cache_decorator(func):
|
|
56
56
|
return func
|
|
57
|
-
version = '5.
|
|
57
|
+
version = '5.67'
|
|
58
58
|
VERSION = version
|
|
59
59
|
__version__ = version
|
|
60
|
-
COMMIT_DATE = '2025-05-
|
|
60
|
+
COMMIT_DATE = '2025-05-08'
|
|
61
61
|
|
|
62
62
|
CONFIG_FILE_CHAIN = ['./multiSSH3.config.json',
|
|
63
63
|
'~/multiSSH3.config.json',
|
|
@@ -67,7 +67,7 @@ CONFIG_FILE_CHAIN = ['./multiSSH3.config.json',
|
|
|
67
67
|
'/etc/multiSSH3.config.json'] # The first one has the highest priority
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
# TODO: Add terminal TUI
|
|
70
|
+
# TODO: Add terminal TUI
|
|
71
71
|
|
|
72
72
|
#%% ------------ Pre Helper Functions ----------------
|
|
73
73
|
def eprint(*args, **kwargs):
|
|
@@ -1769,28 +1769,27 @@ def _curses_add_string_to_window(window, line = '', y = 0, x = 0, number_of_char
|
|
|
1769
1769
|
Returns:
|
|
1770
1770
|
None
|
|
1771
1771
|
"""
|
|
1772
|
-
|
|
1772
|
+
maxY, maxX = window.getmaxyx()
|
|
1773
|
+
if maxY == 0 or maxX == 0 or x >= maxX:
|
|
1773
1774
|
return
|
|
1774
1775
|
if x < 0:
|
|
1775
|
-
x =
|
|
1776
|
+
x = maxX + x
|
|
1776
1777
|
if number_of_char_to_write == -1:
|
|
1777
|
-
numChar =
|
|
1778
|
+
numChar = maxX - x -1
|
|
1778
1779
|
elif number_of_char_to_write == 0:
|
|
1779
1780
|
return
|
|
1780
|
-
elif number_of_char_to_write + x > window.getmaxyx()[1]:
|
|
1781
|
-
numChar = window.getmaxyx()[1] - x -1
|
|
1782
1781
|
else:
|
|
1783
|
-
numChar = number_of_char_to_write
|
|
1782
|
+
numChar = min(number_of_char_to_write,maxX - x -1)
|
|
1784
1783
|
if numChar < 0:
|
|
1785
1784
|
return
|
|
1786
|
-
if y < 0 or y >=
|
|
1787
|
-
if keep_top_n_lines >
|
|
1788
|
-
keep_top_n_lines =
|
|
1785
|
+
if y < 0 or y >= maxY:
|
|
1786
|
+
if keep_top_n_lines > maxY -1:
|
|
1787
|
+
keep_top_n_lines = maxY -1
|
|
1789
1788
|
if keep_top_n_lines < 0:
|
|
1790
1789
|
keep_top_n_lines = 0
|
|
1791
1790
|
window.move(keep_top_n_lines,0)
|
|
1792
1791
|
window.deleteln()
|
|
1793
|
-
y =
|
|
1792
|
+
y = maxY - 1
|
|
1794
1793
|
line = line.replace('\n', ' ').replace('\r', ' ')
|
|
1795
1794
|
if parse_ansi_colors:
|
|
1796
1795
|
segments = re.split(r"(\x1b\[[\d;]*m)", line) # Split line by ANSI escape codes
|
|
@@ -2458,7 +2457,8 @@ def getStrCommand(hosts = DEFAULT_HOSTS,commands = None,oneonone = DEFAULT_ONE_O
|
|
|
2458
2457
|
repeat = repeat,interval = interval,
|
|
2459
2458
|
shortend = shortend)
|
|
2460
2459
|
commandStr = '"' + '" "'.join(commands) + '"' if commands else ''
|
|
2461
|
-
|
|
2460
|
+
filePath = os.path.abspath(__file__)
|
|
2461
|
+
programName = filePath if filePath else 'mssh'
|
|
2462
2462
|
return f'{programName} {argsStr} {hostStr} {commandStr}'
|
|
2463
2463
|
|
|
2464
2464
|
#%% ------------ Record History Block ----------------
|
|
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
|