fyne-io / terminal

A graphical terminal emulator for Linux using Fyne
Other
256 stars 38 forks source link

BUG - Resizing clears the content #78

Open mgazza opened 7 months ago

mgazza commented 7 months ago

Steps to reproduce

Create a file with the following.

Normal text: and bold; reverse video and bold
ANSI plus bold: 0 bold 1 bold 2 bold 3 bold 4 bold 5 bold 6 bold 7 bold
xterm bright: fg0 bg0 fg1 bg1 fg2 bg2 fg3 bg3 fg4 bg4 fg5 bg5 fg6 bg6 fg7 bg7
xterm 256 1: greys                      reds   greens blues  yellow magent cyans 
xterm 256 2: 0001020304050607 08090a0b0c0d0e0f 1011121314151617 18191a1b1c1d1e1f
xterm 256 3: 2021222324252627 28292a2b2c2d2e2f 3031323334353637 38393a3b3c3d3e3f
xterm 256 4: 4041424344454647 48494a4b4c4d4e4f 5051525354555657 58595a5b5c5d5e5f
xterm 256 5: 6061626364656667 68696a6b6c6d6e6f 7071727374757677 78797a7b7c7d7e7f
xterm 256 6: 8081828384858687 88898a8b8c8d8e8f 9091929394959697 98999a9b9c9d9e9f
xterm 256 7: a0a1a2a3a4a5a6a7 a8a9aaabacadaeaf b0b1b2b3b4b5b6b7 b8b9babbbcbdbebf
xterm 256 8: c0c1c2c3c4c5c6c7 c8c9cacbcccdcecf d0d1d2d3d4d5d6d7 d8d9dadbdcdddedf
xterm 256 9: e0e1e2e3e4e5e6e7 e8e9eaebecedeeef f0f1f2f3f4f5f6f7 f8f9fafbfcfdfeff
24-bit colour: SlateGrey OliveDrab goldenrod SaddleBrown DarkViolet (bg)

italics

Blinky

run this into fyne terminal via cat whatever.txt

resize the terminal as small as it will go. resize the terminal back to something more usable.

Expected:

The content should still display.

Actual:

The content is lost.