watch command doesn't work properly #12169

Closed
opened 2026-01-31 03:07:57 +00:00 by claunia · 9 comments
Owner

Originally created by @MythreyaK on GitHub (Jan 24, 2021).

Environment

Windows build number: 10.0.19042.0
Windows Terminal version (if applicable): 1.5.3242.0

Any other software? 
OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2

Steps to reproduce

Run watch command

Expected behavior

Should look like the powershell output in the image (1) below

Actual behavior

Confusing text wrapping as shown in the image (WT in the background)

There's also the scrollbar that appears when using watch, but ideally, I don't think the scrollbar should be available. Powershell also faces this issue ONLY when there's a previous scrollback.

1. Powershell and WT. Powershell has no scrollback now, so looks okay

image

2. Powershell and WT both have previous scrollback, so both are 'broken'

image

3. WT when scrolled up when running watch

wt

Originally created by @MythreyaK on GitHub (Jan 24, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19042.0 Windows Terminal version (if applicable): 1.5.3242.0 Any other software? OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2 ``` # Steps to reproduce Run `watch` command <!-- A description of how to trigger this bug. --> # Expected behavior Should look like the powershell output in the image (1) below <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior Confusing text wrapping as shown in the image (WT in the background) <!-- What's actually happening? --> There's also the scrollbar that appears when using `watch`, but ideally, I don't think the scrollbar should be available. Powershell also faces this issue ONLY when there's a previous scrollback. ### 1. Powershell and WT. Powershell has no scrollback now, so looks okay ![image](https://user-images.githubusercontent.com/26112391/105632324-79f33300-5e78-11eb-850d-1669f42fc17f.png) ### 2. Powershell and WT both have previous scrollback, so both are 'broken' ![image](https://user-images.githubusercontent.com/26112391/105632406-e8d08c00-5e78-11eb-8c54-646acdd3b09a.png) ### 3. WT when scrolled up when running watch ![wt](https://user-images.githubusercontent.com/26112391/105633092-a0b36880-5e7c-11eb-9d64-055c15830119.gif)
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 03:07:57 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jan 25, 2021):

OKay I'm not really sure what's going on here. Does this repro with WSL, without ssh? Because just running watch ls locally seems mostly fine to me.

I think watch wants to be using the alt buffer, which conpty & WT don't yet support (#381). That would be what's causing the scrollbar to appear. I'm not really sure what else is wrong exactly here.

@zadjii-msft commented on GitHub (Jan 25, 2021): OKay I'm not _really_ sure what's going on here. Does this repro with WSL, _without_ `ssh`? Because just running `watch ls` locally _seems_ mostly fine to me. I think `watch` wants to be using the alt buffer, which conpty & WT don't yet support (#381). That would be what's causing the scrollbar to appear. I'm not really sure what else is wrong exactly here.
Author
Owner

@MythreyaK commented on GitHub (Jan 25, 2021):

You're right, WSL and ssh through WSL works fine. CMD, Powershell and Powershell Core all face the issue I describe above

@MythreyaK commented on GitHub (Jan 25, 2021): You're right, `WSL` and `ssh` through `WSL` works fine. `CMD`, `Powershell` and `Powershell Core` all face the issue I describe above
Author
Owner

@DHowett commented on GitHub (Jan 25, 2021):

Sorry, would you mind clarifying?

You're using watch:

  • through WSL
  • through ssh inside WSL
  • through PowerShell
  • through ssh from PowerShell
  • through CMD
  • through ssh from CMD

?

@DHowett commented on GitHub (Jan 25, 2021): Sorry, would you mind clarifying? You're using `watch`: * [ ] through WSL * [ ] through `ssh` inside WSL * [ ] through PowerShell * [ ] through `ssh` from PowerShell * [ ] through CMD * [ ] through `ssh` from CMD ?
Author
Owner

@MythreyaK commented on GitHub (Jan 25, 2021):

It seems to be triggered sometimes by running the clear command in an active ssh session, and resizing the window sometimes (resize without watch running).

❌ Means there was at the least one instance where I had the problem.
✔ means I couldn't reproduce the issue as far as I tried (clear screen, resize window b/w steps, backtracking to previous steps and trying again.

For example, a series of steps could be wsl → powershell core → ssh → watch date → stop watching → clear → exit ssh → clear → ssh → watch date that failed)

✔ wsl → watch date
✔ wsl → ssh → watch date
❌ wsl → powershell core/cmd/powershell → ssh → watch date
❌ Powershell Core → ssh → run clear → watch date

@MythreyaK commented on GitHub (Jan 25, 2021): It seems to be triggered sometimes by running the `clear` command in an active ssh session, and resizing the window sometimes (resize without watch running). ❌ Means there was at the least one instance where I had the problem. ✔ means I couldn't reproduce the issue as far as I tried (clear screen, resize window b/w steps, backtracking to previous steps and trying again. For example, a series of steps could be `wsl` → `powershell core` → `ssh` → `watch date` → stop watching → `clear` → exit ssh → `clear` → `ssh` → `watch date` that failed) ✔ `wsl` → `watch date` ✔ `wsl` → `ssh` → `watch date` ❌ `wsl` → `powershell core`/`cmd`/`powershell` → `ssh` → `watch date` ❌ `Powershell Core` → `ssh` → run `clear` → `watch date`
Author
Owner

@DHowett commented on GitHub (Jan 25, 2021):

Okay, good! Thanks! This has the same root cause as /dup https://github.com/PowerShell/openssh-portable/pull/426. The fix should be available in versions of Win32-OpenSSH greater than 7.7 😄

@DHowett commented on GitHub (Jan 25, 2021): Okay, good! Thanks! This has the same root cause as /dup https://github.com/PowerShell/openssh-portable/pull/426. The fix should be available in versions of Win32-OpenSSH greater than 7.7 :smile:
Author
Owner

@ghost commented on GitHub (Jan 25, 2021):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Jan 25, 2021): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Author
Owner

@MythreyaK commented on GitHub (Jan 25, 2021):

I'm on OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2, so not sure what's happening

@MythreyaK commented on GitHub (Jan 25, 2021): I'm on `OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2`, so not sure what's happening
Author
Owner

@DHowett commented on GitHub (Jan 25, 2021):

It may be worth raising this issue on their tracker to figure out when it's going to be released -- I thought that 8.1 would contain recent fixes, but perhaps it does not.

@DHowett commented on GitHub (Jan 25, 2021): It may be worth raising this issue on their tracker to figure out when it's going to be released -- I thought that 8.1 would contain recent fixes, but perhaps it does not.
Author
Owner

@MythreyaK commented on GitHub (Jan 25, 2021):

Okay, thank you very much!

@MythreyaK commented on GitHub (Jan 25, 2021): Okay, thank you very much!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12169