lhmouse / nano-win

GNU nano text editor for Windows [WARNING: The master branch is constantly rebased and force-pushed so don't expect it to be steady!! -end WARNING]
https://files.lhmouse.com/nano-win/
GNU General Public License v3.0
210 stars 25 forks source link

Term environment variable error on Windows SSH #47

Open rjmalagon opened 1 year ago

rjmalagon commented 1 year ago

When NANO is used on "native" Windows Open SSH (Windows 10 and up) from a *nix box, this little error prevents loading nano

Error opening terminal: xterm-256color

I can change the term env variable to none

$Env:TERM = "" on powershell, for example

It works again.

This from Chocolatey package manager nano.

GNU nano from git, v7.2-14-gb7943a37a
(C) 2023 the Free Software Foundation and various contributors
Compiled options: --disable-libmagic --disable-speller --disable-nls --enable-utf8
lhmouse commented 1 year ago

Apologise for the trouble. It's because I updated ncurses and removed my local patch because I thought it was no longer necessary. Indeed this statically bundled ncurses should always ignore the TERM variable. I will fix this a few moments later.

lhmouse commented 1 year ago

It should be fixed now: https://files.lhmouse.com/nano-win/nano-win_10172_v7.2-17-g587c85c4e.7z