xy hace 3 semanas
padre
commit
f6c26aa69b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/main.php

+ 3 - 0
src/main.php

@@ -22,6 +22,9 @@ class ProgramMain {
             exit(0);
         });
 
+         // 设置非阻塞标准输入
+        stream_set_blocking(STDIN, false);
+
         echo "游戏客户端交互模式(输入命令执行,如 login, outGame, exit)\n";
         
         while (true) {