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'(?