Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion interactive_process/interactive_process.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from ptyprocess import PtyProcessUnicode
import platform
from select import select
Expand All @@ -19,7 +21,7 @@ def __init__(self, env={"PS1": "", "TERM": "dumb"}, echo=False):

def send_command(self, command):
try:
self.process.write(f"{command}\n")
self.process.write(f"{command}" + os.linesep)
except OSError as e:
raise ReadWriteError(f"Failed to write to stdin due to OSError") from e

Expand Down