Term-Detect reviews

RSS | Module Info | Add a review of Term-Detect

Term-Detect (0.08) *

Term::Detect tries to detect settings of the terminal by looking for known process names in the process tree (and the non portable pstree command is used for that). This is flawed and against the Unix way of handling terminals:
- this will not work when the process runs on a remote server (through SSH)
- this will not work properly when the process is launched from a terminal multiplexer (screen, tmux)

The proper way is instead to base detection on $ENV{TERM} and the terminfo database. So, see instead Term::Terminfo and Term::Encoding.