Show More
@@ -25,12 +25,12 b' import os' | |||
|
25 | 25 | ignore_termtitle = 0 |
|
26 | 26 | |
|
27 | 27 | try: |
|
28 | from ctypes import windll | |
|
29 |
SetConsoleTitle |
|
|
30 | ||
|
28 | import ctypes | |
|
29 | SetConsoleTitleW=ctypes.windll.kernel32.SetConsoleTitleW | |
|
30 | SetConsoleTitleW.argtypes=[ctypes.c_wchar_p] | |
|
31 | 31 | def _set_term_title(title): |
|
32 | 32 | """ Set terminal title using the ctypes""" |
|
33 |
SetConsoleTitle |
|
|
33 | SetConsoleTitleW(title) | |
|
34 | 34 | |
|
35 | 35 | except ImportError: |
|
36 | 36 | def _set_term_title(title): |
General Comments 0
You need to be logged in to leave comments.
Login now