April 2023 updates break nnn file manager running on mate-terminal

I think it’s more likely to be on nnn’s side.

I’ve been using nnn for years. In fact, on April 13th 2023, the dev released a birthday v4.8 edition. This was about the same time as the Manjaro updates. It might be worth installing v4.6 or v4.7 and see how they perform.

Yeah, if they don’t have the issue then we’ve likely narrowed it down to whatever changes the dev(s) made.

If you haven’t already, add the information about which TERM values do and do not work to your issue on their github repo. Ask if this is a bug with nnn, it seems like one to me.

I uninstalled nnn v4.9 and compiled v4.7 with PCRE support. v4.7 pre-dates the April 2023 updates, but it also uses ‘xterm-256color’ when launched from a drawer or using Alt+F2 with the run in terminal box ticked. I renamed your script to nnx and changed line 1 from bash to zsh and line 4 to ‘nnn -dfgRUl1’ and it worked when run from mate-terminal or using Alt+F2 run command.

I take it the rename prompt doesn’t work with xterm-256color?

Correct, there is no difference between v4.7 and v4.9. The only problem with the script is that the ~/.config/nnn/.history file entries were deleted. However, this may have been due to crashing the system when the script was called nnn.

Did that version work properly in the past?

Either way, I think the nnn devs should be better able to narrow this down, as they understand their code and how it interacts with the system.

I use nnn every day and all versions of nnn built with PCRE support predating April 2023 have always worked without any errors. I’ve passed the details of our discussion to Arun Prakash Jana, who is the lead nnn developer. When I contacted him about a week ago, he thought that it was a local env problem and hadn’t the bandwidth to investigate. I doubt if nnn is his day job and he probably doesn’t have time to investigate every fault that occurs in every Linux distribution.

Unfortunately, I don’t have an earlier backup of the system before 2023-04-29, but I do have an installation iso “manjaro-mate-22.0-230104-linux61.iso” which predates the problem by four months. If there was time, it could be installed and used to check the env output against the current values.

Just tested nnn on Linux Mint 20.3. The default $TERM on Mint is ‘xterm-256color’ and nnn works without any problems. There was no need to change $TERM to ‘gnome-256color’. So the problem is with the Manjaro April 2023 updates.