8000 Line wrapping breaks the scrolling + non-ANSI truncation · Issue #37 · Piturnah/gex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Line wrapping breaks the scrolling + non-ANSI truncation #37
Open
@Piturnah

Description

@Piturnah

We can now scroll (yay) but there is a problem with line wrap which is that it messes up all the calculations for the viewable window. Currently (I am about to push the commit) we allow configuring gex such that lines are truncated instead (but this only works with ANSI). Also, the truncation is slow because we have to create a whole VTE state machine.

It is to do with the escape codes used for coloring and cursor manipulation and etc that it is not straightforward at all to implement the line wrap. I have tried many ways of doing it. Also, it's made more difficult by the fact that we aren't always using ANSI codes (I think - this part is handled by Crossterm, so I still need to investigate).

Proposed Solution

Refactor so all the styling is done in the renderer itself. This way we can delay the painting until after the viewable window is already determined. This should be a bit faster, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0