Open valerii15298 opened 10 months ago
Your println!(...)
statement prints an additional line feed to the terminal. The printed string would look something like this: ....\n\n
. But because you are at the bottom of the screen and want to insert a new line, Powershell scrolls the whole content up by a line and therefore creating this last empty line. Instead of println!(...)
you could use PrintStyledContent(...)
like this
execute!(
stdout,
PrintStyledContent(content.on(Color::Red)),
);
and it works as expected.
Describe the bug For some reason crossterm does not fill whole terminal with color(see padding on right and on the bottom), even though I added more rows +100(check the code below) but it does not affect anything:
To Reproduce Just execute this code:
Expected behavior A clear and concise description of what you expected to happen.
OS
Terminal/Console