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

Ubuntu - less command centers the text #12380

Closed
Turum opened this issue Feb 4, 2022 · 2 comments
Closed

Ubuntu - less command centers the text #12380

Turum opened this issue Feb 4, 2022 · 2 comments
Labels
Area-VT Virtual Terminal sequence support Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-By-Design It's supposed to be this way. Sometimes for compatibility reasons.

Comments

@Turum
Copy link

Turum commented Feb 4, 2022

Windows Terminal version

1.12.3472.0

Windows build number

10.0.19044.1466

Other Software

Ubuntu-20.04

Steps to reproduce

  1. Create text file with several lines.
  2. Open this file with "less" command.

Expected Behavior

image

Actual Behavior

image

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 4, 2022
@j4james
Copy link
Collaborator

j4james commented Feb 6, 2022

I believe this is working as expected. I'm assuming your command prompt was half way down the page when you started less, and it just starts writing out the content at the line you were on. I see the exact same behaviour in XTerm, Gnome Terminal, and Mintty.

The fact that the old conhost shell is displaying the output at the top of the page was a bug that has since been fixed (PR #10843). It was originally resetting the cursor position to the top left whenever an application switched to the alternate buffer (which less is doing), but that was a mistake.

@zadjii-msft
Copy link
Member

Yea, this is now working by design. gnome-terminal vs Terminal

image

image

@zadjii-msft zadjii-msft added Resolution-By-Design It's supposed to be this way. Sometimes for compatibility reasons. Area-VT Virtual Terminal sequence support labels Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VT Virtual Terminal sequence support Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-By-Design It's supposed to be this way. Sometimes for compatibility reasons.
Projects
None yet
Development

No branches or pull requests

3 participants