Sunday, January 29, 2017

Cygwin - Unrecognized TERM type


>PROBLEM

Type a command, for instance man or vi, the command fails with the following message:

  Unrecognized TERM type




>SOLUTION


The issue came from an attempt to switch the initial folder using "--dir" mintty's flag in the "Cygwin64 Terminal.lnk".
It was done something like this:

D:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico --dir  /cygdrive/D/work/devmob2_/cygwin/home/train -w max

The command above was replaced by its default (except -w flag):

D:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -w max -

Instead, the initial folder was set using windows' HOME envvar.

To set windows HOME envvar:
  sysdm.cpl
Add:
  HOME=/cygdrive/l/work/devmob2_/cygwin/home

No comments:

Post a Comment

eclipse: java: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" or Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

  >PROBLEM Using Eclipse, you try to run a simple logging test using "org.slf4j.Logger" like the sample below: package Test; im...