Skip to content

Commit

Permalink
remove set terminal size on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixthrush committed Sep 19, 2024
1 parent c18f2b7 commit deb8442
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/aniworld/common/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,10 @@ def set_terminal_size(columns: int=None, lines: int=None):
if not columns or not lines:
columns, lines = globals.DEFAULT_TERMINAL_SIZE

if system_name == 'Windows':
os.system(f"mode con: cols={columns} lines={lines}")
elif system_name in 'Darwin':
if system_name in 'Darwin':
os.system(f"printf '\033[8;{lines};{columns}t'")
elif system_name in 'Linux':
logging.debug("Not resizing terminal on Linux")
else:
logging.error(f"Unsupported platform: {system_name}")
raise NotImplementedError(f"Unsupported platform: {system_name}")

# TODO Windows and Linux support

def ftoi(value: float) -> str:
logging.debug("Entering ftoi function.")
Expand Down

0 comments on commit deb8442

Please sign in to comment.