Nano display issue
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)
There's a similar problem with less - scrolling down works, but scrolling up only updates the top row.
I experienced this as well; had to resize the window to refresh the screen and get it looking normal (until I scroll again).
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.
similar issue have on bash command line too. words are tangling when browsing command history with up and down keys.
Just double checked, I think I see what's going on here and I'm working on a fix!
TERM=ansi will work around this. I'd say it's the alternate screen? https://github.com/fish-shell/fish-shell/issues/2910
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?
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 :)
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 Interix/SFU is no longer shipped nor supported.
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)
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.
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.
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 Just tested on recent bits and, yes, looks like it solves your dd issue in vim.
@bitcrazed Thanks! I'll be sure to check it out. Do you happen to know which build number has the fix?
Not sure as yet. Will try to update if we find out.
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:
up
up
up
^h^h^h^h^hhistory^j

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.
The above It is still a bug in Build 14372.