mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Use a tab character in the threads prompt command
https://i.imgur.com/jy0Rlgm.png
This commit is contained in:
parent
b724fc500d
commit
b49bca3279
@ -88,11 +88,11 @@ class MainPrompt(cmd.Cmd):
|
||||
for thread in threading.enumerate():
|
||||
if sys.version_info >= (3, 8):
|
||||
print(
|
||||
f"Name: {thread.name} Identifier: "
|
||||
f"{thread.ident} TID/PID: {thread.native_id}"
|
||||
f"Name: {thread.name}\tIdentifier: "
|
||||
f"{thread.ident}\tTID/PID: {thread.native_id}"
|
||||
)
|
||||
else:
|
||||
print(f"Name: {thread.name} Identifier: {thread.ident}")
|
||||
print(f"Name: {thread.name}\tIdentifier: {thread.ident}")
|
||||
|
||||
def print_prompt(self):
|
||||
self.stdout.write(self.prompt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user