Skip to content
Snippets Groups Projects
Commit fa766644 authored by rswindell's avatar rswindell
Browse files

#define SUPPORT_ZUULTERM if you want this Zuul/HTML terminal support

code included. As far as I know, no one is using one.
parent d771733c
No related branches found
No related tags found
No related merge requests found
/* answer.cpp */
/* Synchronet answer "caller" function */ /* Synchronet answer "caller" function */
/* $Id$ */ /* $Id$ */
...@@ -283,7 +281,9 @@ bool sbbs_t::answer() ...@@ -283,7 +281,9 @@ bool sbbs_t::answer()
"\x1b[6n" /* Get cursor position */ "\x1b[6n" /* Get cursor position */
"\x1b[u" /* restore cursor position */ "\x1b[u" /* restore cursor position */
"\x1b[!_" /* RIP? */ "\x1b[!_" /* RIP? */
#ifdef SUPPORT_ZUULTERM
"\x1b[30;40m\xc2\x9f""Zuul.connection.write('\\x1b""Are you the gatekeeper?')\xc2\x9c" /* ZuulTerm? */ "\x1b[30;40m\xc2\x9f""Zuul.connection.write('\\x1b""Are you the gatekeeper?')\xc2\x9c" /* ZuulTerm? */
#endif
"\x1b[0m_" /* "Normal" colors */ "\x1b[0m_" /* "Normal" colors */
"\x1b[2J" /* clear screen */ "\x1b[2J" /* clear screen */
"\x1b[H" /* home cursor */ "\x1b[H" /* home cursor */
...@@ -338,13 +338,16 @@ bool sbbs_t::answer() ...@@ -338,13 +338,16 @@ bool sbbs_t::answer()
if(terminal[0]==0) if(terminal[0]==0)
SAFECOPY(terminal,"RIP"); SAFECOPY(terminal,"RIP");
logline("@R",strstr(str,"RIPSCRIP")); logline("@R",strstr(str,"RIPSCRIP"));
autoterm|=(RIP|COLOR|ANSI); } autoterm|=(RIP|COLOR|ANSI);
}
#ifdef SUPPORT_ZUULTERM
else if(strstr(str,"Are you the gatekeeper?")) { else if(strstr(str,"Are you the gatekeeper?")) {
if(terminal[0]==0) if(terminal[0]==0)
SAFECOPY(terminal,"HTML"); SAFECOPY(terminal,"HTML");
logline("@H",strstr(str,"Are you the gatekeeper?")); logline("@H",strstr(str,"Are you the gatekeeper?"));
autoterm|=HTML; autoterm|=HTML;
} }
#endif
} }
else if(terminal[0]==0) else if(terminal[0]==0)
SAFECOPY(terminal,"DUMB"); SAFECOPY(terminal,"DUMB");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment