8000 Fix strange characters in `kathara connect` on PowerShell · Issue #353 · KatharaFramework/Kathara · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fix strange characters in kathara connect on PowerShell #353
Open
@Skazza94

Description

@Skazza94

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

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0