|
@@ -582,8 +582,27 @@ void MoveDispatch::server_line(const std::string &line,
|
|
|
if ((state != 2) && (state != 5)) {
|
|
|
|
|
|
std::string temp = raw_line;
|
|
|
- temp.append("\n\r");
|
|
|
- to_client(temp);
|
|
|
+ if (line == "<Auto Pilot Engaging>") {
|
|
|
+
|
|
|
+ replace(temp, "\x1b[H", "");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (startswith(temp, "\x1b[1;33m\xb3"))
|
|
|
+ temp = "\x1b[1A\x1b[1;33m** SLOW MOVE **";
|
|
|
+
|
|
|
+
|
|
|
+ if (in(temp, "\xb3")) {
|
|
|
+ std::string debug = repr(temp);
|
|
|
+ BUGZ_LOG(fatal) << "MOVE LINE: " << debug;
|
|
|
+ }
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+ if (!in(temp, "\x1b[3A")) {
|
|
|
+ temp.append("\n\r");
|
|
|
+ to_client(temp);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (state == 3) {
|
|
@@ -725,7 +744,13 @@ void MoveDispatch::server_prompt(const std::string &prompt) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-void MoveDispatch::client_input(const std::string &input) {}
|
|
|
+
|
|
|
+void MoveDispatch::client_input(const std::string &input) {
|
|
|
+
|
|
|
+
|
|
|
+ success = 0;
|
|
|
+ deactivate();
|
|
|
+}
|
|
|
|
|
|
|
|
|
* CoreDispatch: This is an example class that does dispatch.
|