2016-10-18 11:21:50 -07:00
|
|
|
#include "private.h"
|
2016-07-30 07:31:56 -07:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include "tycommon.h"
|
|
|
|
|
|
|
|
|
2017-12-18 17:16:24 -08:00
|
|
|
int
|
2016-07-30 07:31:56 -07:00
|
|
|
is_running_in_terminology(void)
|
|
|
|
{
|
2017-12-18 17:16:24 -08:00
|
|
|
if (!getenv("TERMINOLOGY")) return 0;
|
2016-07-30 07:31:56 -07:00
|
|
|
// Terminology's escape codes do not got through tmux
|
2017-12-18 17:16:24 -08:00
|
|
|
if (getenv("TMUX")) return 0;
|
2016-07-30 07:31:56 -07:00
|
|
|
// Terminology's escape codes do not got through screen
|
2017-12-18 17:16:24 -08:00
|
|
|
if (getenv("STY")) return 0;
|
2016-07-30 07:31:56 -07:00
|
|
|
|
2017-12-18 17:16:24 -08:00
|
|
|
return 1;
|
2016-07-30 07:31:56 -07:00
|
|
|
}
|