Hi,
Raising a bug as a result of https://github.com/cbucher/console/issues/281
The default /etc/profile from Msys2 has this line:
export TERM=xterm-256color
This makes it more difficult to run Msys2 from within terminal emulators that allow setting environment variables when a CLI tool is called, like ConsoleZ.
Is it possible to have that line in /etc/profile updated to the following so that if it's passed as an environment variable it's not overwritten?
[ -n "$TERM" ] || export TERM=xterm-256color
Thanks for the report.
Ideally, the line should go completely. Setting
TERM=xterm*should be in mintty's responsibility. I'll need to discuss with others to determine what to do.