kubermatic / dashboard

Dashboard For The Kubermatic Kubernetes Platform
https://www.kubermatic.com
Other
42 stars 62 forks source link

Web Terminal cursor never starts new line and jumps back in the beginning #6773

Closed csengerszabo closed 2 months ago

csengerszabo commented 2 months ago

What happened

When I type certain amount of characters into one line of the Web Terminal, when it reached about half of the screen, the cursor jumps back in the beginning of the same line.

Screenshot 2024-08-23 at 13 12 38

Expected behavior

The cursos should be able to type a full line of characters, and when we reach the end of line, it should jump into the next line.

How to reproduce

Environment

Current workaround

Don't type in too long lines.

Affected user persona

Web Terminal User - User Cluster Admin

Business goal to be improved

UX for Cluster admins

Metric to be improved

Waseem826 commented 2 months ago

According to my investigation this appears to be an API issue because on every 20th character API returns \r in response due to which the cursor goes to beginning of current line:


{"Op":"stdout","Data":"1 \r","Rows":0,"Cols":0}