Use a tab character in the threads prompt command

https://i.imgur.com/jy0Rlgm.png
This commit is contained in:
luukas 2022-05-21 01:57:40 +03:00
parent b724fc500d
commit b49bca3279
No known key found for this signature in database
GPG Key ID: CC4915E8D71FC044

View File

@ -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)