serverwatcher 6.dev46__py3-none-any.whl → 6.dev47__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.
- serverwatcher/livecli.py +13 -5
- {serverwatcher-6.dev46.dist-info → serverwatcher-6.dev47.dist-info}/METADATA +1 -1
- {serverwatcher-6.dev46.dist-info → serverwatcher-6.dev47.dist-info}/RECORD +6 -6
- {serverwatcher-6.dev46.dist-info → serverwatcher-6.dev47.dist-info}/WHEEL +0 -0
- {serverwatcher-6.dev46.dist-info → serverwatcher-6.dev47.dist-info}/licenses/LICENSE +0 -0
- {serverwatcher-6.dev46.dist-info → serverwatcher-6.dev47.dist-info}/top_level.txt +0 -0
serverwatcher/livecli.py
CHANGED
|
@@ -423,21 +423,29 @@ class LiveCLI(cmd.Cmd):
|
|
|
423
423
|
return ''.join(chars)
|
|
424
424
|
finally:
|
|
425
425
|
termios.tcsetattr(fd, termios.TCSADRAIN, old)
|
|
426
|
+
|
|
426
427
|
async def run(self):
|
|
427
428
|
while True:
|
|
429
|
+
# print prompt (not buffered)
|
|
430
|
+
self.safePrint("> ", end="", write_buffer=False)
|
|
431
|
+
|
|
432
|
+
# read raw input
|
|
428
433
|
line = await asyncio.to_thread(self.read_line_raw)
|
|
429
434
|
line = line.strip()
|
|
430
435
|
if not line:
|
|
431
436
|
continue
|
|
432
437
|
|
|
433
|
-
#
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
if not line.startswith('view'): # avoid double-storing view commands
|
|
437
|
-
buf.captured.append(line)
|
|
438
|
+
# erase Pterodactyl echo
|
|
439
|
+
erase = "\b" * len(line)
|
|
440
|
+
self.safePrint(erase, end="", write_buffer=False)
|
|
438
441
|
|
|
442
|
+
# print our own prompt + command (buffered)
|
|
443
|
+
self.safePrint(f"> {line}", write_buffer=True)
|
|
444
|
+
|
|
445
|
+
# execute command
|
|
439
446
|
stop = await asyncio.to_thread(self.onecmd, line)
|
|
440
447
|
if stop:
|
|
441
448
|
break
|
|
449
|
+
|
|
442
450
|
def onecmd(self, line):
|
|
443
451
|
return dispatch(self, line)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
serverwatcher/__init__.py,sha256=Q_afN0XU29n48d6Gf0-LT2lLo3RiTWlHRT6rC_fYbjw,486
|
|
2
2
|
serverwatcher/__main__.py,sha256=5geaZQKgLSP1pxnpQPgFy9zAwyyPyTInlbcFxb9OiEw,3016
|
|
3
|
-
serverwatcher/livecli.py,sha256=
|
|
3
|
+
serverwatcher/livecli.py,sha256=gHS0W5XGANdppvlx9hjU81w5HULa11fssAtF82N50qQ,14137
|
|
4
4
|
serverwatcher/validator.py,sha256=aD6GHOz1S5VFC93Mj89WO9vZG1bTjhg7QZbdlvQf4wo,1778
|
|
5
5
|
serverwatcher/watcher.py,sha256=QfWuyDIPZ59yToIdX5PdPMRcJrq-kFUW8d9Q39mA0uE,13769
|
|
6
6
|
serverwatcher/watchercli.py,sha256=unREQ-KNIphH4nedz5L6TwReUJrSiXhIMjT1SZbYObU,4103
|
|
@@ -13,8 +13,8 @@ serverwatcher/defaultconfigs/messages.yaml,sha256=jSVEl-RYqPHhe5U5KLl8zfJtUBymvy
|
|
|
13
13
|
serverwatcher/defaultconfigs/watcher.yaml,sha256=GlAEKCuzFUSF6wWOqQLFL1CeuPltb1ltfYxFe_FUClw,723
|
|
14
14
|
serverwatcher/tests/test.py,sha256=CqGBdfktVIyXz6wMoa6TBbEPlPvp_lA_VSzBuxwxrfs,2551
|
|
15
15
|
serverwatcher/tests/test2.py,sha256=DcvYiidXTe3SSOpiSPQ585YBN4PXrDMs0a3ZW_TbBsg,9564
|
|
16
|
-
serverwatcher-6.
|
|
17
|
-
serverwatcher-6.
|
|
18
|
-
serverwatcher-6.
|
|
19
|
-
serverwatcher-6.
|
|
20
|
-
serverwatcher-6.
|
|
16
|
+
serverwatcher-6.dev47.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
serverwatcher-6.dev47.dist-info/METADATA,sha256=uY5OzoPXpXJKVBs4RweH66wQyltZfUrXx0Gdk4txxOs,2647
|
|
18
|
+
serverwatcher-6.dev47.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
19
|
+
serverwatcher-6.dev47.dist-info/top_level.txt,sha256=8DJAf8WmmglgtZHkp8aoTriRJ2YPcS4F3DfOIkytASo,14
|
|
20
|
+
serverwatcher-6.dev47.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|