Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.

Commit b995048

Browse files
committed
fix(icat): move termios module behind os gate to prevent import error
1 parent 885f35a commit b995048

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

viu_media/cli/utils/icat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import shutil
22
import subprocess
33
import sys
4-
import termios
54
import tty
65
from sys import exit
76

@@ -18,6 +17,8 @@ def get_key():
1817
if sys.platform == "win32":
1918
raise NotImplementedError("icat is not supported on Windows.")
2019

20+
import termios
21+
2122
fd = sys.stdin.fileno()
2223
old = termios.tcgetattr(fd)
2324
try:

0 commit comments

Comments
 (0)