Skip to content

Executing input() after Kathara.get_instance().connect_tty() : EOFError #295

Closed Answered by JH-UCLouvain
JH-UCLouvain asked this question in Q&A
Discussion options

You must be logged in to vote

I got a solution by re-opening the stdin:

sys.stdin = open("/dev/tty")
user_input = input("> ")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Skazza94
Comment options

Answer selected by JH-UCLouvain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants