Le dimanche 8 août 2021, 10:04:30 UTC Benno Schulenberg a écrit : > > $env -i nano > > command fail because TERM is unset > > I can work around an unset TERM. But what if TERM=="" or TERM=="nonsense"? > Checking whether TERM is a valid terminal name goes too far, in my opinion. > > Also, is the 'vt100' terminal description guaranteed to exist? I ask, > because 'dumb' and 'vt52' are not good enough for nano (ncurses) to work > properly, and 'ansi' leaves the cursor invisible on a VTE-based terminal. nano work with TERM=dumb (but is strange but it work), so safer will be to consider as best effort TERM="" , TERM not set, equivalent to dumb.
At least it fix this bug. Bastien > > Benno
signature.asc
Description: This is a digitally signed message part.