Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"clear" does not clear the terminal #16524

Closed
Y0rg0 opened this issue Jan 4, 2024 · 9 comments
Closed

"clear" does not clear the terminal #16524

Y0rg0 opened this issue Jan 4, 2024 · 9 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-External For issues that are outside this codebase

Comments

@Y0rg0
Copy link

Y0rg0 commented Jan 4, 2024

Windows Terminal version

1.19.3172.0

Windows build number

10.0.19045-3803

Other Software

No response

Steps to reproduce

  1. open the Terminal
  2. type any command that produces output in the terminal - e.g. a simple "dir" or "cd C:" will do
  3. type "clear" to clear the terminal

Expected Behavior

"clear" to always clear the previous output...

Actual Behavior

cursor will be positioned at the top of the inner window, but the previous output still is visible below
(this does not happen all the time, but mostly)

@Y0rg0 Y0rg0 added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jan 4, 2024
Copy link

github-actions bot commented Jan 4, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@zadjii-msft
Copy link
Member

Hmm. I can't seem to repro this. Do you have any more detailed repro steps? How are you launching the Terminal? What shell are you using (PowerShell? CMD? Bash/zsh/fish/etc)? Do you have anything in your shell settings/profile that might be at play here? Something that attempts to resize the window perhaps?

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jan 4, 2024
@Y0rg0
Copy link
Author

Y0rg0 commented Jan 4, 2024 via email

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jan 4, 2024
@Y0rg0
Copy link
Author

Y0rg0 commented Jan 4, 2024

see attached screen-recording (archive contains .mp4 video recorded by OBS):

2024-01-04 16-15-41.zip

@zadjii-msft
Copy link
Member

huh. Where did you get clear from/? That's not a built-in CMD intrinsic like cls is, and there isn't a clear.exe that ships inbox.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jan 4, 2024
@237dmitry
Copy link

What is clear? What about to use cls ?

 C:\> clear
'clear' is not recognized as an internal or external command,
operable program or batch file.

 C:\> where clear.*
INFO: Could not find files for the given pattern(s).


@Y0rg0
Copy link
Author

Y0rg0 commented Jan 4, 2024

C:\Users\xxxx>where clear
C:\Program Files\Git\usr\bin\clear.exe

excellent find - and "cls" works better -- thank you :)

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jan 4, 2024
@zadjii-msft
Copy link
Member

Yep, that makes sense. Thanks for following up!

@zadjii-msft zadjii-msft closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
@zadjii-msft zadjii-msft added Tracking-External This bug isn't resolved, but it's following an external workitem. Resolution-External For issues that are outside this codebase and removed Tracking-External This bug isn't resolved, but it's following an external workitem. labels Jan 4, 2024
@Y0rg0
Copy link
Author

Y0rg0 commented Jan 4, 2024

to my defense :-)
I work in Windows and Linux, so I am used to use commands that work in both universes:
"clear" does this (normally...), but "cls" is not known in Linux...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-External For issues that are outside this codebase
Projects
None yet
Development

No branches or pull requests

3 participants