Skip to content

How to deal with overflowing lines? #204

Open
@roele

Description

@roele

I am having trouble with clearing when lines overflow. If all the lines of the output are within the terminal width, the terminal is cleared properly via the following.

self.term.clear_to_end_of_screen()?;
self.term.clear_last_lines(self.height)?; // height being the number of lines of the written output

But when one of the lines (see screenshow) overflows, the first line of the output is not cleared and written all over again. Even if i account for overflowing lines and increase the height to clear, the first line is not cleared.

Screenshot

Any ideas how to mitigate this?

Example Source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions