Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapping text breaks animation #259

Open
TraceM171 opened this issue Mar 5, 2025 · 0 comments
Open

Wrapping text breaks animation #259

TraceM171 opened this issue Mar 5, 2025 · 0 comments

Comments

@TraceM171
Copy link

It looks like having a large enough text to need wrapping inside an animation breaks it.

Running the following code on a terminal size small enough that causes the first line to wrap will reproduce it.

val terminal = Terminal()
val animation = terminal.animation<Unit> {
    verticalLayout {
        cell(Text("Really long text".repeat(20)))
        cell("")
        cell(Text("I will be overwritten!"))
        cell("")
    }
}
while (isActive) {
    animation.update(Unit)
    delay(1.seconds)
}

I have not found any workaround to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant