WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Nano display issue

Open trapframe opened this issue 10 years ago • 37 comments

nano is displaying fine until you try to scroll the document, then only part of the screen is scrolling. Sometimes when scrolling back (up) the console window is resizing itself (reducing its height)

trapframe avatar Apr 07 '16 11:04 trapframe

There's a similar problem with less - scrolling down works, but scrolling up only updates the top row.

jernejs avatar Apr 07 '16 11:04 jernejs

I experienced this as well; had to resize the window to refresh the screen and get it looking normal (until I scroll again).

kobaltz avatar Apr 07 '16 11:04 kobaltz

One way to observe I think is to have a long line in the document and then try scrolling to the end of that line.

atrauzzi avatar Apr 07 '16 12:04 atrauzzi

similar issue have on bash command line too. words are tangling when browsing command history with up and down keys.

yalcin avatar Apr 08 '16 17:04 yalcin

Just double checked, I think I see what's going on here and I'm working on a fix!

zadjii-msft avatar Apr 08 '16 22:04 zadjii-msft

TERM=ansi will work around this. I'd say it's the alternate screen? https://github.com/fish-shell/fish-shell/issues/2910

floam avatar Apr 11 '16 10:04 floam

Another thing to test here is hitting "end" while you're already at the end of a line. This is inserting a tilde for me. Might be related?

tkelman avatar Apr 11 '16 12:04 tkelman

For the time being, yes, TERM=ansi would fix this, though, it's not actually a problem with the alternate screen, rather, the scrolling margin settings.

Also, the 'End' key inserting a tilde is actually unrelated, and I'm pretty sure I've got that tracked down :)

zadjii-msft avatar Apr 12 '16 16:04 zadjii-msft

How about "interix'? On Tue, Apr 12, 2016 at 9:26 AM Mike Griese [email protected] wrote:

For the time being, yes, TERM=ansi would fix this, though, it's not actually a problem with the alternate screen, rather, the scrolling margin settings.

Also, the 'End' key inserting a tilde is actually unrelated, and I'm pretty sure I've got that tracked down :)

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/Microsoft/BashOnWindows/issues/27#issuecomment-208991199

Aaron

floam avatar Apr 12 '16 17:04 floam

@floam Interix/SFU is no longer shipped nor supported.

bitcrazed avatar Apr 12 '16 17:04 bitcrazed

The Ubuntu tarball has interix termcap. It works well for WSL/Bash today. Renders curses stuff great.

Aaron Gyes

On April 12, 2016 at 10:38:38 AM, Rich Turner ([email protected](mailto:[email protected])) wrote:

@floam(https://github.com/floam) Interix is no longer shipped nor supported.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub(https://github.com/Microsoft/BashOnWindows/issues/27#issuecomment-209022140)

floam avatar Apr 12 '16 17:04 floam

I stuck a interix terminfo which I hacked up to work a bit more nicely with the Win 10 console on github: https://github.com/floam/lxsscons/blob/master/bashOnLinuxOnWindows.terminfo

I don't know what I'm doing - it's not proposed as a solution to anything.

floam avatar Apr 12 '16 17:04 floam

Interix/SFU is no longer shipped nor supported.

I am simply suggesting it as a better "lie" - especially with it no longer shipping, it will be not so destructive if someone (for example) does something as crazy as replace the termcap with one like I posted above.

It would be best if it just said exactly what it is - but people will be shelling into naive remote machines, etc. and at least interix comes with ncurses and the degradation is rather graceful. It's a better starting point than saying xterm of all things, IMO.

floam avatar Apr 14 '16 06:04 floam

vim is also experiencing a similar weirdness. I am going to assume fixing this issue will also fix vim. But is a description of the bug in case it helps:

If I type 'dd' to cut a line of text, the first line disappears, not the line I am on. If I page down and page up, the text refreshes and the first line reappears. The line I cut is indeed cut.

jjriv avatar Apr 25 '16 20:04 jjriv

@jjriv Just tested on recent bits and, yes, looks like it solves your dd issue in vim.

bitcrazed avatar Apr 28 '16 18:04 bitcrazed

@bitcrazed Thanks! I'll be sure to check it out. Do you happen to know which build number has the fix?

jjriv avatar Apr 28 '16 18:04 jjriv

Not sure as yet. Will try to update if we find out.

bitcrazed avatar Apr 28 '16 20:04 bitcrazed

Browsing history with the up arrow key is still a problem in Build 14342 and Build 14352 and Build 14361 and Build 17379, see example: arrow-up1 up arrow-up2 up arrow-up3 up arrow-up4 ^h^h^h^h^hhistory^j arrow-up5

mobluse avatar May 14 '16 17:05 mobluse

It is still a bug in Build 14361, because I typed in the commands in history above and used up-arrow and got similar erroneous results.

mobluse avatar Jun 11 '16 12:06 mobluse

The above It is still a bug in Build 14372.

mobluse avatar Jun 28 '16 17:06 mobluse