Open
Description
When running kathara connect
in PowerShell, users may see strange characters (such as ←[2J←[0;0H
) instead of a clean terminal screen. This happens because the code currently uses ANSI escape sequences (\033[2J
and \033[0;0H
) to clear the screen and reset the cursor position. This method works well on Linux terminals but not on all Windows environments.
While modern Windows terminals (like Windows Terminal and recent PowerShell versions) do support ANSI escape codes, older versions do not, leading to display issues.
The proposed change is to use exec_by_platform
to distinguish the OS we are running on and rely on os.system('cls')
on Windows.
Metadata
Metadata
Assignees
Type
Projects
Status
Done