Op 09-08-2021 om 15:08 schreef Bastien Roucariès: > nano work with TERM=dumb (but is strange but it work),
For me, 'TERM=dumb nano somefile' does not work, not on a console, not on an xterm, not on Xfce Terminal -- it shows something, but is totally unusable: the user cannot see what he or she is doing. What terminal are you using? > so safer will be to > consider as best effort TERM="" , TERM not set, equivalent to dumb. May I ask what the scenario is? How can it happen that TERM is unset? What disaster can leave TERM unset? When the user starts a shell with 'env -i' and does not know how to get out? I think it is okay when nano works around an unset TERM, simply because nano /needs/ a terminal. But if TERM is set to anything that is invalid (even the empty string), then the user is responsible and they should get what they asked for -- that is: a non-functioning nano. Benno
OpenPGP_signature
Description: OpenPGP digital signature