|
@@ -127,6 +127,7 @@ void init_harry() {
|
|
|
// ZF_LOGD("init => %d %d", last_seen_harry_event[0],
|
|
|
// last_seen_harry_event[1]);
|
|
|
console_init(&console);
|
|
|
+ reset_render();
|
|
|
}
|
|
|
|
|
|
// char words[] = "[a-zA-Z]+( [a-zA-Z]+)+";
|
|
@@ -159,7 +160,11 @@ int mangle_clrscr(std::string &buffer, std::string &work, size_t pos) {
|
|
|
{bat, sizeof(bat) / sizeof(char *), 1, 0},
|
|
|
{icu, sizeof(icu) / sizeof(char *), 0, 20},
|
|
|
{skull, sizeof(skull) / sizeof(char *), 0, 19},
|
|
|
- {skullblink, sizeof(skullblink) / sizeof(char *), 0, 19}};
|
|
|
+ {skullblink, sizeof(skullblink) / sizeof(char *), 0, 19},
|
|
|
+ {specter, sizeof(specter) / sizeof(char *), 1, 0},
|
|
|
+ {owl, sizeof(owl) / sizeof(char *), 0, 70}
|
|
|
+
|
|
|
+ };
|
|
|
|
|
|
static LastSeen last_files(2);
|
|
|
int r;
|
|
@@ -183,7 +188,11 @@ int mangle_clrscr(std::string &buffer, std::string &work, size_t pos) {
|
|
|
display.str(std::string());
|
|
|
display.clear();
|
|
|
} else {
|
|
|
- fgoto.assign("^CS^F");
|
|
|
+ if (images[r].lines == specter) {
|
|
|
+ // specter!
|
|
|
+ fgoto.assign("^S1^CS^F");
|
|
|
+ } else
|
|
|
+ fgoto.assign("^CS^F");
|
|
|
}
|
|
|
|
|
|
needs_cls = images[r].cls;
|
|
@@ -199,7 +208,7 @@ int mangle_clrscr(std::string &buffer, std::string &work, size_t pos) {
|
|
|
// Ok, yes, there's no filename being sent. :P
|
|
|
render_image(images[r].lines, images[r].size);
|
|
|
|
|
|
- display << (needs_cls ? "\x1b[2J" : "") << fgoto << "^CR^P3";
|
|
|
+ display << (needs_cls ? "\x1b[2J" : "") << fgoto << "^S0^CR^P3";
|
|
|
|
|
|
std::string display_output = display.str();
|
|
|
|