mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-04-28 11:53:08 -07:00
fix(icat): move termios, tty modules behind os gate to prevent import error
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user