Skip to content
Snippets Groups Projects
Commit e67ed8ef authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'Terminal-make-sync-tty'


dfd0521e Terminal: Support GNU make's TTY notification environment variable

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !158
parents d4cecd6a dfd0521e
No related branches found
No related tags found
No related merge requests found
...@@ -172,6 +172,14 @@ static int kwsysTerminalStreamIsVT100(FILE* stream, int default_vt100, ...@@ -172,6 +172,14 @@ static int kwsysTerminalStreamIsVT100(FILE* stream, int default_vt100,
} }
} }
/* GNU make 4.1+ may tell us that its output is destined for a TTY. */
{
const char* termout = getenv("MAKE_TERMOUT");
if (termout && *termout != '\0') {
return 1;
}
}
/* If running inside emacs the terminal is not VT100. Some emacs /* If running inside emacs the terminal is not VT100. Some emacs
seem to claim the TERM is xterm even though they do not support seem to claim the TERM is xterm even though they do not support
VT100 escapes. */ VT100 escapes. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment