2016-10-18 11:21:50 -07:00
|
|
|
#include "private.h"
|
2016-07-30 07:31:56 -07:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <Eina.h>
|
|
|
|
#include "tycommon.h"
|
|
|
|
|
|
|
|
|
|
|
|
Eina_Bool
|
|
|
|
is_running_in_terminology(void)
|
|
|
|
{
|
|
|
|
if (!getenv("TERMINOLOGY"))
|
|
|
|
return EINA_FALSE;
|
|
|
|
|
|
|
|
// Terminology's escape codes do not got through tmux
|
|
|
|
if (getenv("TMUX"))
|
|
|
|
return EINA_FALSE;
|
|
|
|
|
|
|
|
// Terminology's escape codes do not got through screen
|
|
|
|
if (getenv("STY"))
|
|
|
|
return EINA_FALSE;
|
|
|
|
|
|
|
|
return EINA_TRUE;
|
|
|
|
}
|