fix(icat): move termios, tty modules behind os gate to prevent import error

This commit is contained in:
Type-Delta
2026-04-06 10:59:16 +07:00
parent 885f35ac2c
commit 9cc322d109

View File

@@ -1,8 +1,6 @@
import shutil
import subprocess
import sys
import termios
import tty
from sys import exit
from rich.align import Align
@@ -18,6 +16,9 @@ def get_key():
if sys.platform == "win32":
raise NotImplementedError("icat is not supported on Windows.")
import termios
import tty
fd = sys.stdin.fileno()
old = termios.tcgetattr(fd)
try: