v.21.6Improvement

Fix Progress Bar Overwriting Data in ClickHouse Client

Fix the case when a progress bar in interactive mode in clickhouse-client that appear in the middle of the data may rewrite some parts of visible data in terminal. This closes #19283. #23050 (alexey-milovidov).
Fixed an issue where the progress bar in interactive mode of clickhouse-client could overwrite parts of the displayed data in the terminal.

Why it matters

The update resolves a display problem in the clickhouse-client interactive mode where the progress bar, appearing mid-query, could corrupt the visible output by overwriting portions of the data. This improves usability and clarity when monitoring query progress.

How to use it

Users simply benefit from this fix automatically when running queries in interactive mode within clickhouse-client. No additional configuration is required.