Im-Beast / deno_tui

🦕 Deno module for creating Terminal User Interfaces
https://deno.land/x/tui
MIT License
266 stars 18 forks source link

bug: Transparent background makes previous contents not clear #42

Open mabasic opened 8 months ago

mabasic commented 8 months ago

Bug description A clear and concise description of what the bug is.

When you create a tui:

    const tui = new Tui({
      // style: colors.bgBlack, // Make background black
    });

And then you draw something on the screen that uses Computed and try resizing the window, you will see that the old text/object is displayed in the previous position also.

Bug when you uncomment the above line (style) it works as expected.

Expected behavior What you expected to happen instead.

Old objects / artifacts should be removed.

Screenshots Screenshots to help explain your problem (optional).