Resizing problems when importing readline
#4465
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We found the following entry in the FAQ which you may find helpful: Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review. This is an automated reply, generated by FAQtory |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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.