How to rename a console window in python

I had made a CLI Python programme using socket and I want to rename my Console Window to "Single Server Chat". It would be great of you to help

Upvotes: 0

Views: 1413

Answers (1)

Vignesh
Vignesh

Reputation: 312

The below code will change the title of command prompt in windows.

import os
os.system('title "Single Server Chat"')

Upvotes: 2

Related Questions