Updates the terminal title with the default one or with `title` if provided.
(title=None)
| 102 | _winapi_SetConsoleTitle.argtypes = [LPWSTR] |
| 103 | |
| 104 | def _windows_title(title=None): |
| 105 | # type: (Optional[str]) -> None |
| 106 | """ |
| 107 | Updates the terminal title with the default one or with `title` |
| 108 | if provided. |
| 109 | """ |
| 110 | if conf.interactive: |
| 111 | _winapi_SetConsoleTitle(title or "Scapy v{}".format(conf.version)) |
| 112 | |
| 113 | |
| 114 | SC_HANDLE = HANDLE |
searching dependent graphs…