From 683908bb01d6fb90fae42fb91d2ba0f051683af9 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 18 Feb 2023 19:19:15 +0800 Subject: [PATCH] uaaaaa --- Difficult_Rocket/client/__init__.py | 3 ++- Difficult_Rocket/command/api.py | 2 +- Difficult_Rocket/main.py | 2 +- libs/Difficult_Rocket_rs/src/Cargo.toml | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Difficult_Rocket/client/__init__.py b/Difficult_Rocket/client/__init__.py index 06ce3aa..fc38d66 100644 --- a/Difficult_Rocket/client/__init__.py +++ b/Difficult_Rocket/client/__init__.py @@ -215,7 +215,7 @@ class ClientWindow(Window): def read_input(self): self.logger.debug('read_input start') while self.run_input: - get = input() + get = input(">") if get in ('', ' ', '\n', '\r'): continue if get == 'stop': @@ -287,6 +287,7 @@ class ClientWindow(Window): @_call_screen_after def on_command(self, command: line.CommandText): + print(command.re_match('/')) self.logger.info(tr().window.command.text().format(command)) if command.re_match('stop'): # self.dispatch_event('on_exit') diff --git a/Difficult_Rocket/command/api.py b/Difficult_Rocket/command/api.py index 6521db8..dec8467 100644 --- a/Difficult_Rocket/command/api.py +++ b/Difficult_Rocket/command/api.py @@ -17,7 +17,7 @@ import re from typing import Union, Optional, Type, Tuple, List # DR -from Difficult_Rocket.exception.command import * +# from Difficult_Rocket.exception.command import * search_re = re.compile(r'(?