tuikit icon indicating copy to clipboard operation
tuikit copied to clipboard

add transparency on start

Open yazgoo opened this issue 1 year ago • 1 comments

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

  • clear on start (default: true): when set to false, will never erase to end of line or erase down
  • disable alternate screen (default: false): when set to true, never run rmcup/smcup

yazgoo avatar Aug 30 '22 20:08 yazgoo

UP ?

yazgoo avatar Sep 19 '22 12:09 yazgoo