Ver Fonte

Added changes so output is cleaner for python.

Steve Thielemann há 3 anos atrás
pai
commit
0810e5385f
1 ficheiros alterados com 13 adições e 3 exclusões
  1. 13 3
      director.cpp

+ 13 - 3
director.cpp

@@ -51,7 +51,7 @@ void Director::client_input(const std::string &input) {
     return;
   } else if (input == "\x1b" || input == "~") {
     std::string &prompt = current_prompt;
-    BUGZ_LOG(trace) << "CI: ACTIVATE prompt shows: [" << prompt << "]";
+    BUGZ_LOG(trace) << "ACTIVATE prompt shows: [" << prompt << "]";
 
     if (prompt == "Selection (? for menu): ") {
       to_client(
@@ -400,14 +400,24 @@ void Director::menu_choice(void) {
           // type 0 ports.  Type 9 stays at 9.
           chain = cim;
           to_server("^RQ");
-          to_client("Port CIM Report\n\r");
+          {
+            std::string text = str(boost::format("Port CIM Report (%1%)\n\r") %
+                                   galaxy.ports.size());
+            // to_client("Port CIM Report\n\r");
+            to_client(text);
+          }
           chain->activate();
           return;
           break;
         case 'W':  // Warp CIM
           chain = cim;
           to_server("^IQ");
-          to_client("Warp CIM Report\n\r");
+          {
+            std::string text = str(boost::format("Warp CIM Report (%1%)\n\r") %
+                                   galaxy.warps.size());
+            // to_client("Warp CIM Report\n\r");
+            to_client(text);
+          }
           chain->activate();
           return;
           break;