Skip to content

Resizing problems when importing readline #4465

Answered by willmcgugan
imneedle asked this question in Q&A
Discussion options

You must be logged in to vote

You might want to consider running your application from the Textual app with a worker. Alternatively you could use a subprocess for your main application. Allow the Textual app to respond to stdin and stdout. Consider using the asyncio subprocess API for that.

I'm guessing the readline issue is caused by readline handling the terminal resize signal. The readline module doesn't really make sense in the same context as a Textual app.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by imneedle
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
Converted from issue

This discussion was converted from issue #4448 on April 30, 2024 15:03.