Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dashboard] 交互式控制台调试界面 #195

Closed
Tracked by #223
Dynesshely opened this issue Dec 9, 2022 · 4 comments · Fixed by Crequency/KitX-Dashboard#8 or #201
Closed
Tracked by #223

[Dashboard] 交互式控制台调试界面 #195

Dynesshely opened this issue Dec 9, 2022 · 4 comments · Fixed by Crequency/KitX-Dashboard#8 or #201
Assignees
Labels
enhancement New feature or request fixed This problem has been fixed

Comments

@Dynesshely
Copy link
Member

No description provided.

@Dynesshely Dynesshely self-assigned this Dec 9, 2022
@Dynesshely Dynesshely added enhancement New feature or request help wanted Extra attention is needed labels Dec 9, 2022
@Dynesshely
Copy link
Member Author

具体需求:
在仪表盘需要的时候, 弹出一个传统的控制台窗口来与使用者交互 (这里主要考虑方便开发者调试)
目前的思路是, 通过重定向 Shell 的输入输出流来读写控制台输入输出, 这个操作在某一个线程中进行以免阻塞 UI
同时, 先一步处理 Shell 的输入, 如果内嵌命令包含用户输入则由仪表盘执行, 否则交由 Shell 执行

@Dynesshely Dynesshely changed the title 交互式控制台调试界面 9. 交互式控制台调试界面 Dec 9, 2022
@Dynesshely
Copy link
Member Author

具体思路:

  1. 启动外部控制台程序
  2. 通过启动参数告知控制台程序命名管道的名称
  3. 开启命名管道服务器并等待该控制台程序连接
  4. 通过命名管道得到用户输入

@Dynesshely
Copy link
Member Author

原来的写废了, 但摸索出了更好的设计思路
现在在 Crequency/Common.ExternalConsole 重做

@Dynesshely
Copy link
Member Author

基本实现了基础的库, 现在尝试在 KitX 中调用
但是现在遇到了一个问题
即: Common.ExternalConsole.Console 输出类型为控制台项目, 在 Windows 上将生成 .exe 文件, 但当我将 Crequency/Common.ExternalConsole 发布到 NuGet 并在其它项目中引用时, Common.ExternalConsole.Console 生成类型却是 .dll 文件

@Dynesshely Dynesshely removed the help wanted Extra attention is needed label Dec 18, 2022
@Dynesshely Dynesshely changed the title 9. 交互式控制台调试界面 交互式控制台调试界面 Mar 5, 2023
@Cronyet Cronyet added the fixed This problem has been fixed label Mar 12, 2023
@Dynesshely Dynesshely changed the title 交互式控制台调试界面 [Dashboard] 交互式控制台调试界面 Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed This problem has been fixed
Projects
None yet
2 participants