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

Cursor misaligned in nano #3202

Closed
zulc22 opened this issue Oct 15, 2019 · 10 comments
Closed

Cursor misaligned in nano #3202

zulc22 opened this issue Oct 15, 2019 · 10 comments
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conpty For console issues specifically related to conpty Resolution-Fix-Available It's available in an Insiders build or a release

Comments

@zulc22
Copy link

zulc22 commented Oct 15, 2019

Environment

Windows build number:
Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal version (if applicable): 0.5.2762.0

Any other software?
GNU nano (windows port, installed from chocolatey.)

Steps to reproduce

Run GNU nano.

Expected behavior

Cursor is aligned with where the text is appearing, follows after a newline, etc. (screenshot of conhost)

conhost screenshot

Actual behavior

Cursor doesn't follow after a newline, and doesn't stay aligned to the insert point.

windows terminal screenshot

@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 Oct 15, 2019
@egmontkob
Copy link

Probably the same as #2642 and #3093.

@PromoFaux
Copy link

PromoFaux commented Oct 18, 2019

Confirmed in the wrong place. Also one cannot move the cursor about with the arrow keys.

If I SSH to a linux machine and use nano there, everything is fine. It appears to only affect win32 nano, which works fine in a normal Powershell window

image

@DHowett-MSFT
Copy link
Contributor

Honestly, this looks like GOW nano, which has made some eminently questionable decisions regarding how the Windows Console works. The arrow keys don't even work..?

Technically, this is a conpty issue, but I cannot figure out how it ended up so bad.

@DHowett-MSFT DHowett-MSFT added Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conpty For console issues specifically related to conpty labels Oct 23, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Oct 23, 2019
@DHowett-MSFT DHowett-MSFT added Needs-Tag-Fix Doesn't match tag requirements and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Oct 23, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Oct 23, 2019
@DHowett-MSFT DHowett-MSFT added this to the Console Backlog milestone Oct 23, 2019
@zulc22
Copy link
Author

zulc22 commented Oct 25, 2019

the arrow keys work for me in my copy of nano. @PromoFaux may need to give more information on their part about that.

@PromoFaux
Copy link

PromoFaux commented Oct 25, 2019

When pressing the arrow keys, the cursor does not move around, I just get [Unknown Command] at the bottom of the screen. using nano 2.5.3 installed via Chocolatey, using Terminal 0.6.2951.0

Works fine in a "normal" command prompt terminal, or powershell terminal

@zulc22
Copy link
Author

zulc22 commented Oct 25, 2019

oh wait-- you're right. the arrow keys don't work. sorry.

@jeffrson
Copy link

jeffrson commented Nov 23, 2019

I found the same issue.
"nano" installed via scoop (scoop.sh), which specifically comes from https://github.com/ScoopInstaller/Main/blob/master/bucket/nano.json or currently https://files.lhmouse.com/nano-win/nano-win_8303_v4.5-103-gb12aeeac.7z cannot move visible cursor. Although the cursor is moved internally because you would start typing at the new position.

No problem with "external" PowerShell.

OTOH it seems a bit strange that "nano" from GitForWindows does not show this behaviour - cursor works fine. Both versions being 4.5.

@DHowett
Copy link
Member

DHowett commented Apr 2, 2021

I can no longer reproduce this using the linked nano from scoop!

@DHowett DHowett added the Resolution-Fix-Available It's available in an Insiders build or a release label Apr 2, 2021
@DHowett DHowett closed this as completed Apr 2, 2021
@PromoFaux
Copy link

Completely forgot about this issue :) But yeah, confirm no longer seeing the issue even with the same binary as before

image

@DHowett
Copy link
Member

DHowett commented Apr 13, 2021

Thanks! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conpty For console issues specifically related to conpty Resolution-Fix-Available It's available in an Insiders build or a release
Projects
None yet
Development

No branches or pull requests

6 participants