multiSSH3 5.34__py3-none-any.whl → 5.36__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 multiSSH3 might be problematic. Click here for more details.
- {multiSSH3-5.34.dist-info → multiSSH3-5.36.dist-info}/METADATA +1 -1
- multiSSH3-5.36.dist-info/RECORD +7 -0
- multiSSH3.py +7 -4
- multiSSH3-5.34.dist-info/RECORD +0 -7
- {multiSSH3-5.34.dist-info → multiSSH3-5.36.dist-info}/LICENSE +0 -0
- {multiSSH3-5.34.dist-info → multiSSH3-5.36.dist-info}/WHEEL +0 -0
- {multiSSH3-5.34.dist-info → multiSSH3-5.36.dist-info}/entry_points.txt +0 -0
- {multiSSH3-5.34.dist-info → multiSSH3-5.36.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
multiSSH3.py,sha256=p7sWcedLIzM45ZRIFFkBo1vOzNlO-9im-He-RsTjb5E,136470
|
|
2
|
+
multiSSH3-5.36.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
3
|
+
multiSSH3-5.36.dist-info/METADATA,sha256=YfVb3R1lsmqPW7pIuOXQpkGHSnu6R2WgDhwF_0CyD5E,18160
|
|
4
|
+
multiSSH3-5.36.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
5
|
+
multiSSH3-5.36.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
|
|
6
|
+
multiSSH3-5.36.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
|
|
7
|
+
multiSSH3-5.36.dist-info/RECORD,,
|
multiSSH3.py
CHANGED
|
@@ -37,7 +37,7 @@ except AttributeError:
|
|
|
37
37
|
# If neither is available, use a dummy decorator
|
|
38
38
|
def cache_decorator(func):
|
|
39
39
|
return func
|
|
40
|
-
version = '5.
|
|
40
|
+
version = '5.36'
|
|
41
41
|
VERSION = version
|
|
42
42
|
|
|
43
43
|
CONFIG_FILE = '/etc/multiSSH3.config.json'
|
|
@@ -1942,7 +1942,6 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
|
|
|
1942
1942
|
elif key == 27: # 27 is the key code for ESC
|
|
1943
1943
|
__keyPressesIn[-1] = []
|
|
1944
1944
|
curserPosition = 0
|
|
1945
|
-
# ignore delete key
|
|
1946
1945
|
elif key in [127, 330]: # 330 is the key code for delete key
|
|
1947
1946
|
# delete the character at the cursor position
|
|
1948
1947
|
if curserPosition < len(__keyPressesIn[lineToDisplay]):
|
|
@@ -1963,7 +1962,9 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
|
|
|
1963
1962
|
encodedLine = ''.join(__keyPressesIn[lineToDisplay]).encode().decode().strip('\n') + ' '
|
|
1964
1963
|
#stats = '┍'+ f"Send CMD: {encodedLine}"[:max_x - 2].center(max_x - 2, "━")
|
|
1965
1964
|
# format the stats line with chracter at curser position inverted using ansi escape sequence
|
|
1966
|
-
|
|
1965
|
+
# displayCurserPosition is needed as the curserPosition can be larger than the length of the encodedLine. This is wanted to keep scrolling through the history less painful
|
|
1966
|
+
displayCurserPosition = min(curserPosition,len(encodedLine) -1)
|
|
1967
|
+
stats = f'Send CMD: {encodedLine[:displayCurserPosition]}\x1b[7m{encodedLine[displayCurserPosition]}\x1b[0m{encodedLine[displayCurserPosition + 1:]}'
|
|
1967
1968
|
if stats != old_stat :
|
|
1968
1969
|
old_stat = stats
|
|
1969
1970
|
# calculate the real curser position in stats as we centered the stats
|
|
@@ -1999,6 +2000,8 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
|
|
|
1999
2000
|
# we will only update the window if there is new output or the window is not fully printed
|
|
2000
2001
|
if new_configured or host.printedLines < len(host.output):
|
|
2001
2002
|
try:
|
|
2003
|
+
if new_configured:
|
|
2004
|
+
host.printedLines = 0
|
|
2002
2005
|
#host_window.clear()
|
|
2003
2006
|
# we will try to center the name of the host with ┼ at the beginning and end and ─ in between
|
|
2004
2007
|
#linePrintOut = f'┼{(host.name+":["+host.command+"]")[:host_window_width - 2].center(host_window_width - 1, "─")}'.replace('\n', ' ').replace('\r', ' ').strip()
|
|
@@ -2123,7 +2126,7 @@ def curses_print(stdscr, hosts, threads, min_char_len = DEFAULT_CURSES_MINIMUM_C
|
|
|
2123
2126
|
stdscr.refresh()
|
|
2124
2127
|
except:
|
|
2125
2128
|
pass
|
|
2126
|
-
params = params[:5]
|
|
2129
|
+
params = params[:5] + ('new config',)
|
|
2127
2130
|
time.sleep(0.01)
|
|
2128
2131
|
#time.sleep(0.25)
|
|
2129
2132
|
|
multiSSH3-5.34.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
multiSSH3.py,sha256=URzvRbak_B3LjbFT21dbhPo2BN6xhpEISAT6xYRklOM,136203
|
|
2
|
-
multiSSH3-5.34.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
3
|
-
multiSSH3-5.34.dist-info/METADATA,sha256=CsHgr828Ga8I1m9dau8hsEZk9owYaTUfWFRocQqSm_o,18160
|
|
4
|
-
multiSSH3-5.34.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
5
|
-
multiSSH3-5.34.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
|
|
6
|
-
multiSSH3-5.34.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
|
|
7
|
-
multiSSH3-5.34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|