Skip to content

Commit

Permalink
isolate termios
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Feb 18, 2025
1 parent f32d22d commit 4cf2f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rocker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from pathlib import Path
import signal
import struct
import termios
import typing

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

def set_window_size(self):
import fcntl
import termios
s = struct.pack("HHHH", 0, 0, 0, 0)
try:
a = struct.unpack('hhhh', fcntl.ioctl(SYS_STDOUT.fileno(),
Expand Down

0 comments on commit 4cf2f93

Please sign in to comment.