mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-01 22:24:31 +00:00
try run command
This commit is contained in:
parent
3673c98c9a
commit
47874e5a25
2 changed files with 8 additions and 4 deletions
|
|
@ -22,9 +22,7 @@ log = logging.getLogger(__name__)
|
|||
def run_with_pty(command):
|
||||
master, slave = pty.openpty()
|
||||
|
||||
# Check if stdin is actually a terminal
|
||||
old_settings = termios.tcgetattr(sys.stdin)
|
||||
|
||||
original_sigint = signal.getsignal(signal.SIGINT)
|
||||
|
||||
ctrl_c_pressed = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue