mirror of https://github.com/AxioDL/logvisor.git
Update LogVisor.cpp
This commit is contained in:
parent
c3dc632dd0
commit
ab386ad858
|
@ -73,7 +73,7 @@ struct ConsoleLogger : public ILogger
|
|||
if (!Term)
|
||||
{
|
||||
Term = getenv("TERM");
|
||||
if (!strncmp(Term, "xterm", 5))
|
||||
if (Term && !strncmp(Term, "xterm", 5))
|
||||
{
|
||||
XtermColor = true;
|
||||
putenv((char*)"TERM=xterm-16color");
|
||||
|
|
Loading…
Reference in New Issue