v.21.6Improvement

Clear Terminal and Show Cursor in clickhouse-client

Clear the rest of the screen and show cursor in clickhouse-client if previous program has left garbage in terminal. This closes #16518. #22634 (alexey-milovidov).
Improves clickhouse-client terminal behavior by clearing leftover screen artifacts and ensuring the cursor is visible after the client starts.

Why it matters

Addresses the issue where previous programs leave garbage on the terminal screen when launching clickhouse-client, enhancing user experience by providing a clean terminal and visible cursor.

How to use it

No special action is required from users; this behavior is applied automatically when starting clickhouse-client with the updated version.