python get terminal title code example
Example 1: set windows title in python
import ctypes
ctypes.windll.kernel32.SetConsoleTitleW("My New Title")
Example 2: python change terminal name
import os
os.system('TITLE Your title here')
# Note, this will work with any Windows cmd command
# (Assuming you're using this on a Windows computer)