lotabout / tuikit

Tool kit for writing TUI applications in Rust.
MIT License
104 stars 28 forks source link

add transparency on start #44

Closed yazgoo closed 2 years ago

yazgoo commented 2 years ago

Create options (disabled by default) to allow "transparency" in tuikit. more precisely: retain cells which don't need to be changed as they were before tuikit was started.

example

With win example with the new options:

                TermOptions::default()
                    .disable_alternate_screen(true)
                    .clear_on_start(false)

Running in shell:

clear
# display an image in term:
blockish /home/yazgoo/Pictures/vimpapers/73lfih7qkrr61.png 
# move cursor to top left:
echo "\e[0;0f"
# run pre-compiled win example:
./target/debug/examples/win

Results in:

image

new options

yazgoo commented 2 years ago

UP ?