Skip to content

Commit 4cf2f93

Browse files
committed
isolate termios
1 parent f32d22d commit 4cf2f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rocker/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from pathlib import Path
3939
import signal
4040
import struct
41-
import termios
4241
import typing
4342

4443
SYS_STDOUT = sys.stdout
@@ -276,6 +275,7 @@ def __init__ (self, process):
276275

277276
def set_window_size(self):
278277
import fcntl
278+
import termios
279279
s = struct.pack("HHHH", 0, 0, 0, 0)
280280
try:
281281
a = struct.unpack('hhhh', fcntl.ioctl(SYS_STDOUT.fileno(),

0 commit comments

Comments
 (0)