Skip to content

Commit

Permalink
Windows 11 terminal window size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjsh committed Mar 31, 2024
1 parent 780968a commit f3d625e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

os.system(f"title ValoAssist v{version}")
title_with_version = f"ValoAssist v{version}"

os.system(f"title {title_with_version}")

server = ""

os.system("mode con cols=200 lines=50")
#os.system("mode con cols=200 lines=50")

import pygetwindow
win = pygetwindow.getWindowsWithTitle(title_with_version)[0]
win.size = (1536, 864)

def program_exit(status: int): # so we don't need to import the entire sys module
log(f"exited program with error code {status}")
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ urllib3==2.0.7
wcwidth==0.2.6
websocket-server==0.6.4
websockets==11.0.3
pygetwindow==0.0.9

0 comments on commit f3d625e

Please sign in to comment.