You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
I'm building a simple application that grabs data from a server and dumps it onto a screen. The idea was to render the content inline within the MainScreen right after the invocation. You can think of it as of cat, which dumps some data onto the screen and exists immediately.
I've followed the "getting started" guide to get something up and running (see the snippet in the "To Reproduce" section). As the result, the snippet is overlapping with the existing content in the terminal:
What I'm trying to achieve is to render the block right after the cargo run command logs (without overlapping). I understand that the current behaviour might be the expected one, as tui might not care if there is existing content and treats the terminal window as canvas. But I was curious, if anyone has come across the same use case / problem before, and what would be the right solution?
Hey 👋, so this is a bit related to #518. This is not currently supported by tui-rs that assumes you are running your application in an alternate screen or fullscreen.
The good news is that I've started working on this topic in #552 as I also think that it could be really valuable to be able to use tui widgets in cli outputs. This is still very much in progress but you can see a preview by running cargo run --example inline.
Description
Use case
First of all, thanks for the awesome crate!
I'm building a simple application that grabs data from a server and dumps it onto a screen. The idea was to render the content inline within the MainScreen right after the invocation. You can think of it as of
cat
, which dumps some data onto the screen and exists immediately.I've followed the "getting started" guide to get something up and running (see the snippet in the "To Reproduce" section). As the result, the snippet is overlapping with the existing content in the terminal:
What I'm trying to achieve is to render the block right after the
cargo run
command logs (without overlapping). I understand that the current behaviour might be the expected one, astui
might not care if there is existing content and treats the terminal window as canvas. But I was curious, if anyone has come across the same use case / problem before, and what would be the right solution?To Reproduce
Here is the snippet:
Expected behavior
A mode or a way to instruct "tui" to append rendered contents to the existing content in terminal.
Environment
The text was updated successfully, but these errors were encountered: