3 ms·
I’m assuming I’ve misunderstood your question, because all TUI libraries allow multi-line output, by definition? They take over the whole space; you can draw wh
by setr 4y ago
I’m assuming I’ve misunderstood your question, because all TUI libraries allow multi-line output, by definition? They take over the whole space; you can draw whatever you want on any section of the screen. Though the logic for drawing it nicely for your usecase might require a custom widget… it looks like the difference between fig’s autocomplete example[0] and prompt_toolkit’s example[1] is less multi-line output and more of “the box has multiple sections, drawn differently”.
[0] https://camo.githubusercontent.com/74884a83c88c19b27b1a451b7e618fe773c6a48f6cb209a02d3fe70381a4f9d9/68747470733a2f2f6669672e696f2f676966732f64656d6f2d776974682d6865616465722e676966 https://camo.githubusercontent.com/74884a83c88c19b27b1a451b7...
[1] https://raw.githubusercontent.com/prompt-toolkit/python-prompt-toolkit/master/docs/images/ptpython.png https://raw.githubusercontent.com/prompt-toolkit/python-prom...