Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TERM is a rather blunt instrument which changes support for many features besides ANSI color. SSH sessions further complicate matters.

TERM=dumb is useful for cases where you absolutely want serialized output, such as CI logging. Interactive cases require you to choose a value that both your terminal emulator and the software supports.



I didn't know about TERM=dumb at all until last weekend when I was messing with Haskell. Without it, the line editor in the REPL was broken when moving through the history (in both Terminal.app and iTerm2). I was surprised that it worked though since I expected that TERM=dumb would result in the REPL not being able to use any ANSI escape codes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: