Re:Textual TUI framework for Python adds CSS renderer
by a_t48 on Sunday October 23, 2022 @12:19PM
(#33308068)
Ah dang, that websockets thing would have been useful a month ago for me. I was trying to forward stdout to a scrollable pane - I initially tried textual but the performance was kinda poor when scrolling. Ended up going with prompt toolkit instead because I could get it to work.
[ Parent
| on HN ]
Re:Textual TUI framework for Python adds CSS renderer
by mixmastamyk on Sunday October 23, 2022 @03:09PM
(#33309348)
Print log to file, then tail -f in another tab/pane.
Re:Textual TUI framework for Python adds CSS renderer
by a_t48 on Sunday October 23, 2022 @07:02PM
(#33311159)
That's basically what I'm doing, but the scroll performance was not good.
Re:Textual TUI framework for Python adds CSS renderer
by mixmastamyk on Sunday October 23, 2022 @09:54PM
(#33312182)
If text-scroll performance is an issue on a computer after the year 2000 or so, your terminal/app/lib is doing something wrong. Even the very atrocious windows terminal performance has been fixed by this point.
Re:Textual TUI framework for Python adds CSS renderer
by a_t48 on Sunday October 23, 2022 @10:20PM
(#33312333)
This wasn't a terminal issue, this was a TUI issue with Textual.
Re:Textual TUI framework for Python adds CSS renderer
by mixmastamyk on Monday October 24, 2022 @02:55PM
(#33320788)
The work-around I was referring to, doesn't require any software besides a xterm-style terminal and the tail command.
Re:Textual TUI framework for Python adds CSS renderer
by a_t48 on Monday October 24, 2022 @04:17PM
(#33322049)
For my own reasons I needed a TUI - I’m aware that part of what I wanted to do could be replicated with tmux and some tails. It wasn’t _just_ logging though, I had good reason to want a python TUI.