Specify $TERM in place of assuming it is set to something working

Ref #1104
Merge pull request #1114 from ZyX-I/fix-1104

Specify $TERM in place of assuming it is set to something working