multiSSH3 5.33__py3-none-any.whl → 5.35__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multiSSH3
3
- Version: 5.33
3
+ Version: 5.35
4
4
  Summary: Run commands on multiple hosts via SSH
5
5
  Home-page: https://github.com/yufei-pan/multiSSH3
6
6
  Author: Yufei Pan
@@ -0,0 +1,7 @@
1
+ multiSSH3.py,sha256=FM2s1Hu0ESU9WVazL0ZoW_UOa7ug-6VwKQJZbw8Kq4o,136398
2
+ multiSSH3-5.35.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
+ multiSSH3-5.35.dist-info/METADATA,sha256=cE8GVNZhYd2Q7lWtehTzvm538Zb6M9zPxMQcfoXuKXs,18160
4
+ multiSSH3-5.35.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
5
+ multiSSH3-5.35.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
6
+ multiSSH3-5.35.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
7
+ multiSSH3-5.35.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.33'
40
+ version = '5.35'
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]):
@@ -1962,9 +1961,10 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
1962
1961
  # we use the stat bar to display the key presses
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
- stats = f"Send CMD: {encodedLine}"
1966
1964
  # format the stats line with chracter at curser position inverted using ansi escape sequence
1967
- stats = f'{stats[:curserPosition]}\x1b[7m{stats[curserPosition]}\x1b[0m{stats[curserPosition + 1:]}'
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:]}'
1968
1968
  if stats != old_stat :
1969
1969
  old_stat = stats
1970
1970
  # calculate the real curser position in stats as we centered the stats
@@ -1980,6 +1980,7 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
1980
1980
  # stat_window.addnstr(0, curserPositionStats + 1, stats[curserPositionStats + 1:], max_x - 1 - curserPositionStats)
1981
1981
  # stat_window.refresh()
1982
1982
  _curses_add_string_to_window(window=stat_window, y=0, line=stats, color_pair_list=[-1, -1, 1],centered=True,fill_char='━',lead_str='┍',box_ansi_color=box_ansi_color)
1983
+ stat_window.refresh()
1983
1984
  if bottom_border:
1984
1985
  #target_length = max_x - 2 + len('\x1b[33m\x1b[0m\x1b[31m\x1b[0m\x1b[32m\x1b[0m')
1985
1986
  #bottom_stats = '└'+ f" Total: {len(hosts)} Running: \x1b[33m{host_stats['running']}\x1b[0m Failed: \x1b[31m{host_stats['failed']}\x1b[0m Finished: \x1b[32m{host_stats['finished']}\x1b[0m Waiting: {host_stats['waiting']} "[:target_length].center(target_length, "─")
@@ -1,7 +0,0 @@
1
- multiSSH3.py,sha256=wvogBIsm9WVIeLcJdJkIfev39-o1QyJmt6EC3uJFU2o,136143
2
- multiSSH3-5.33.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- multiSSH3-5.33.dist-info/METADATA,sha256=8EPnbWXF-5qPC1wpUFi-k-fU0gv27xLYz20jKo2xFjI,18160
4
- multiSSH3-5.33.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
5
- multiSSH3-5.33.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
6
- multiSSH3-5.33.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
7
- multiSSH3-5.33.dist-info/RECORD,,