Open cpkio opened 1 year ago
I can reproduce the same on Linux using kitty terminal.
I am experiencing this issue too. I fear this has to do with the usage of the \t
character. When using a code block (three backticks), using \t
will always issue this problem. When rendering normal text, screen is not correctly cleared when using a \t
. Some pattern I noticed:
\t
will always clear wrongly.
hello\t with tab
Using a \t
inside a string is problematic, but using it at the beginning of the line is not. End of line doesn't seem to be a problem.
I am using slides
under Linux Mint, with Gnome Terminal, and under Fedora with Gnome Terminal too.
I am not familiar with Go programming language, but I might take a look at the source code to see if there is any problem regarding what I said.
I find a same problems, if this page has content and the corresponding position of the previous page is blank, when I return to the previous page, the content of the corresponding position of this page will be retained, my command line environment is gnome42.9
Seeing the same thing on macOS Sonoma with Alacritty. Removing all tabs from inside code blocks resolves the issue
I wonder if swapping these two lines in internal/model/model.go:210-211 would fix the issue?
slide, err := r.Render(slide)
slide = strings.ReplaceAll(slide, "\t", tabSpaces)
Describe the bug Screen is not cleared up when switching between slides.
To Reproduce Set the terminal to 80×18 (big font size), load this sample (random text):
Expected behavior Expected to see no text from previous slide on next one.
Screenshots
(the header and the first line of the first slide leaked to the second)
Desktop (please complete the following information):