5 ms·
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 th
by a_t48 4y ago
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.
- mixmastamyk 4y agoPrint log to file, then tail -f in another tab/pane.
- a_t48 4y agoThat's basically what I'm doing, but the scroll performance was not good.
- mixmastamyk 4y agoIf 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.
- a_t48 4y agoThis wasn't a terminal issue, this was a TUI issue with Textual. Edit: actually to clarify - it was probably me using it wrong, but I didn't have any good examples of what I was trying to do.
- mixmastamyk 4y agoThe work-around I was referring to, doesn't require any software besides a xterm-style terminal and the tail command.
- a_t48 4y agoFor 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.