Skip to content

The documentation about console sections should mention that the height of the terminal is the limit for overwriting #18738

Closed
@stof

Description

@stof

Terminals only allow overwriting the visible content.

https://symfony.com/doc/current/console.html#output-sections should make that clear.
the first use case mentioned in the page (showing multiple progress bars) is fine as progress bars don't grow in height. However, the second mentioned use case (appending content in a table) is more risky (if the table is in the first section and you only append to it and the section is a small one in height, it will work. But that won't work if you try to have 2 sections showing tables in which you append).

See symfony/symfony#35012 for some discussions about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsolehasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions