TUI+统计

This commit is contained in:
2026-02-07 01:16:56 +08:00
parent 9d2be87d54
commit 84c4900f18
15 changed files with 2292 additions and 0 deletions

View File

@@ -0,0 +1,145 @@
# Details
Date : 2026-02-06 22:40:24
Directory c:\\Users\\leon\\source\\repos\\CMLeonOS\\CMLeonOS
Total : 130 files, 46331 codes, 1235 comments, 4442 blanks, all 52008 lines
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [Branswe.md](/Branswe.md) | Markdown | 261 | 0 | 67 | 328 |
| [CMLeonOS.csproj](/CMLeonOS.csproj) | XML | 49 | 1 | 6 | 56 |
| [Editor/Editor.cs](/Editor/Editor.cs) | C# | 267 | 29 | 35 | 331 |
| [Editor/Nano.cs](/Editor/Nano.cs) | C# | 727 | 16 | 93 | 836 |
| [Interpreter/Branswe.cs](/Interpreter/Branswe.cs) | C# | 482 | 28 | 53 | 563 |
| [Interpreter/UniLua/ByteString.cs](/Interpreter/UniLua/ByteString.cs) | C# | 41 | 0 | 7 | 48 |
| [Interpreter/UniLua/Coder.cs](/Interpreter/UniLua/Coder.cs) | C# | 1,101 | 26 | 157 | 1,284 |
| [Interpreter/UniLua/Common.cs](/Interpreter/UniLua/Common.cs) | C# | 99 | 3 | 27 | 129 |
| [Interpreter/UniLua/Do.cs](/Interpreter/UniLua/Do.cs) | C# | 269 | 25 | 50 | 344 |
| [Interpreter/UniLua/Dump.cs](/Interpreter/UniLua/Dump.cs) | C# | 187 | 0 | 33 | 220 |
| [Interpreter/UniLua/LLex.cs](/Interpreter/UniLua/LLex.cs) | C# | 627 | 40 | 93 | 760 |
| [Interpreter/UniLua/LuaAPI.cs](/Interpreter/UniLua/LuaAPI.cs) | C# | 1,335 | 64 | 240 | 1,639 |
| [Interpreter/UniLua/LuaAuxLib.cs](/Interpreter/UniLua/LuaAuxLib.cs) | C# | 643 | 21 | 92 | 756 |
| [Interpreter/UniLua/LuaBaseLib.cs](/Interpreter/UniLua/LuaBaseLib.cs) | C# | 406 | 9 | 43 | 458 |
| [Interpreter/UniLua/LuaBitLib.cs](/Interpreter/UniLua/LuaBitLib.cs) | C# | 179 | 0 | 26 | 205 |
| [Interpreter/UniLua/LuaCoroLib.cs](/Interpreter/UniLua/LuaCoroLib.cs) | C# | 137 | 0 | 16 | 153 |
| [Interpreter/UniLua/LuaDebug.cs](/Interpreter/UniLua/LuaDebug.cs) | C# | 443 | 19 | 55 | 517 |
| [Interpreter/UniLua/LuaDebugLib.cs](/Interpreter/UniLua/LuaDebugLib.cs) | C# | 20 | 0 | 6 | 26 |
| [Interpreter/UniLua/LuaEncLib.cs](/Interpreter/UniLua/LuaEncLib.cs) | C# | 51 | 0 | 13 | 64 |
| [Interpreter/UniLua/LuaFile.cs](/Interpreter/UniLua/LuaFile.cs) | C# | 115 | 2 | 18 | 135 |
| [Interpreter/UniLua/LuaFunc.cs](/Interpreter/UniLua/LuaFunc.cs) | C# | 69 | 6 | 20 | 95 |
| [Interpreter/UniLua/LuaIOLib.cs](/Interpreter/UniLua/LuaIOLib.cs) | C# | 70 | 12 | 19 | 101 |
| [Interpreter/UniLua/LuaJsonLib.cs](/Interpreter/UniLua/LuaJsonLib.cs) | C# | 461 | 0 | 65 | 526 |
| [Interpreter/UniLua/LuaMathLib.cs](/Interpreter/UniLua/LuaMathLib.cs) | C# | 285 | 10 | 49 | 344 |
| [Interpreter/UniLua/LuaObject.cs](/Interpreter/UniLua/LuaObject.cs) | C# | 367 | 1 | 52 | 420 |
| [Interpreter/UniLua/LuaOsLib.cs](/Interpreter/UniLua/LuaOsLib.cs) | C# | 206 | 0 | 32 | 238 |
| [Interpreter/UniLua/LuaPkgLib.cs](/Interpreter/UniLua/LuaPkgLib.cs) | C# | 256 | 57 | 47 | 360 |
| [Interpreter/UniLua/LuaState.cs](/Interpreter/UniLua/LuaState.cs) | C# | 250 | 6 | 51 | 307 |
| [Interpreter/UniLua/LuaStrLib.cs](/Interpreter/UniLua/LuaStrLib.cs) | C# | 869 | 8 | 61 | 938 |
| [Interpreter/UniLua/LuaTable.cs](/Interpreter/UniLua/LuaTable.cs) | C# | 465 | 37 | 80 | 582 |
| [Interpreter/UniLua/LuaTableLib.cs](/Interpreter/UniLua/LuaTableLib.cs) | C# | 250 | 8 | 24 | 282 |
| [Interpreter/UniLua/OpCodes.cs](/Interpreter/UniLua/OpCodes.cs) | C# | 131 | 7 | 27 | 165 |
| [Interpreter/UniLua/Parser.cs](/Interpreter/UniLua/Parser.cs) | C# | 1,588 | 139 | 219 | 1,946 |
| [Interpreter/UniLua/TagMethod.cs](/Interpreter/UniLua/TagMethod.cs) | C# | 91 | 2 | 10 | 103 |
| [Interpreter/UniLua/ULDebug.cs](/Interpreter/UniLua/ULDebug.cs) | C# | 13 | 2 | 5 | 20 |
| [Interpreter/UniLua/Undump.cs](/Interpreter/UniLua/Undump.cs) | C# | 321 | 6 | 50 | 377 |
| [Interpreter/UniLua/Util.cs](/Interpreter/UniLua/Util.cs) | C# | 192 | 8 | 39 | 239 |
| [Interpreter/UniLua/VM.cs](/Interpreter/UniLua/VM.cs) | C# | 1,038 | 58 | 161 | 1,257 |
| [Kernel.cs](/Kernel.cs) | C# | 228 | 33 | 43 | 304 |
| [LISENCE.md](/LISENCE.md) | Markdown | 485 | 0 | 110 | 595 |
| [Logger/LogEntry.cs](/Logger/LogEntry.cs) | C# | 41 | 0 | 5 | 46 |
| [Logger/LogLevel.cs](/Logger/LogLevel.cs) | C# | 11 | 0 | 1 | 12 |
| [Logger/Logger.cs](/Logger/Logger.cs) | C# | 94 | 0 | 18 | 112 |
| [README.md](/README.md) | Markdown | 2 | 0 | 0 | 2 |
| [Settings/Settings.cs](/Settings/Settings.cs) | C# | 140 | 0 | 17 | 157 |
| [Shell/CommandList.cs](/Shell/CommandList.cs) | C# | 208 | 0 | 1 | 209 |
| [Shell/Commands/Editor/EditCommand.cs](/Shell/Commands/Editor/EditCommand.cs) | C# | 24 | 0 | 3 | 27 |
| [Shell/Commands/Editor/NanoCommand.cs](/Shell/Commands/Editor/NanoCommand.cs) | C# | 24 | 0 | 3 | 27 |
| [Shell/Commands/Environment/EnvCommand.cs](/Shell/Commands/Environment/EnvCommand.cs) | C# | 107 | 0 | 8 | 115 |
| [Shell/Commands/FileSystem/CatCommand.cs](/Shell/Commands/FileSystem/CatCommand.cs) | C# | 18 | 0 | 2 | 20 |
| [Shell/Commands/FileSystem/CdCommand.cs](/Shell/Commands/FileSystem/CdCommand.cs) | C# | 10 | 0 | 1 | 11 |
| [Shell/Commands/FileSystem/CopyCommand.cs](/Shell/Commands/FileSystem/CopyCommand.cs) | C# | 40 | 0 | 6 | 46 |
| [Shell/Commands/FileSystem/DiskInfoCommand.cs](/Shell/Commands/FileSystem/DiskInfoCommand.cs) | C# | 28 | 0 | 5 | 33 |
| [Shell/Commands/FileSystem/FindCommand.cs](/Shell/Commands/FileSystem/FindCommand.cs) | C# | 37 | 0 | 5 | 42 |
| [Shell/Commands/FileSystem/HeadCommand.cs](/Shell/Commands/FileSystem/HeadCommand.cs) | C# | 46 | 0 | 8 | 54 |
| [Shell/Commands/FileSystem/LsCommand.cs](/Shell/Commands/FileSystem/LsCommand.cs) | C# | 10 | 0 | 1 | 11 |
| [Shell/Commands/FileSystem/MkdirCommand.cs](/Shell/Commands/FileSystem/MkdirCommand.cs) | C# | 20 | 0 | 2 | 22 |
| [Shell/Commands/FileSystem/MoveCommand.cs](/Shell/Commands/FileSystem/MoveCommand.cs) | C# | 41 | 0 | 7 | 48 |
| [Shell/Commands/FileSystem/PwdCommand.cs](/Shell/Commands/FileSystem/PwdCommand.cs) | C# | 11 | 0 | 2 | 13 |
| [Shell/Commands/FileSystem/RenameCommand.cs](/Shell/Commands/FileSystem/RenameCommand.cs) | C# | 48 | 0 | 9 | 57 |
| [Shell/Commands/FileSystem/RmCommand.cs](/Shell/Commands/FileSystem/RmCommand.cs) | C# | 42 | 0 | 5 | 47 |
| [Shell/Commands/FileSystem/RmdirCommand.cs](/Shell/Commands/FileSystem/RmdirCommand.cs) | C# | 27 | 0 | 3 | 30 |
| [Shell/Commands/FileSystem/TailCommand.cs](/Shell/Commands/FileSystem/TailCommand.cs) | C# | 47 | 0 | 8 | 55 |
| [Shell/Commands/FileSystem/TouchCommand.cs](/Shell/Commands/FileSystem/TouchCommand.cs) | C# | 25 | 0 | 3 | 28 |
| [Shell/Commands/FileSystem/TreeCommand.cs](/Shell/Commands/FileSystem/TreeCommand.cs) | C# | 67 | 0 | 11 | 78 |
| [Shell/Commands/FileSystem/WordCountCommand.cs](/Shell/Commands/FileSystem/WordCountCommand.cs) | C# | 45 | 0 | 6 | 51 |
| [Shell/Commands/Help/Help.cs](/Shell/Commands/Help/Help.cs) | C# | 507 | 0 | 26 | 533 |
| [Shell/Commands/Info/About.cs](/Shell/Commands/Info/About.cs) | C# | 12 | 0 | 2 | 14 |
| [Shell/Commands/Info/Version.cs](/Shell/Commands/Info/Version.cs) | C# | 16 | 0 | 2 | 18 |
| [Shell/Commands/LabyrinthCommand.cs](/Shell/Commands/LabyrinthCommand.cs) | C# | 224 | 0 | 24 | 248 |
| [Shell/Commands/Power/RestartCommand.cs](/Shell/Commands/Power/RestartCommand.cs) | C# | 13 | 0 | 2 | 15 |
| [Shell/Commands/Power/ShutdownCommand.cs](/Shell/Commands/Power/ShutdownCommand.cs) | C# | 13 | 0 | 2 | 15 |
| [Shell/Commands/Script/BransweCommand.cs](/Shell/Commands/Script/BransweCommand.cs) | C# | 32 | 0 | 5 | 37 |
| [Shell/Commands/Script/ComCommand.cs](/Shell/Commands/Script/ComCommand.cs) | C# | 43 | 0 | 8 | 51 |
| [Shell/Commands/Script/LuaCommand.cs](/Shell/Commands/Script/LuaCommand.cs) | C# | 165 | 0 | 21 | 186 |
| [Shell/Commands/System/ClearCommand.cs](/Shell/Commands/System/ClearCommand.cs) | C# | 11 | 0 | 2 | 13 |
| [Shell/Commands/System/DateCommand.cs](/Shell/Commands/System/DateCommand.cs) | C# | 11 | 0 | 2 | 13 |
| [Shell/Commands/System/EchoCommand.cs](/Shell/Commands/System/EchoCommand.cs) | C# | 12 | 0 | 2 | 14 |
| [Shell/Commands/System/SettingsCommand.cs](/Shell/Commands/System/SettingsCommand.cs) | C# | 62 | 0 | 8 | 70 |
| [Shell/Commands/System/TimeCommand.cs](/Shell/Commands/System/TimeCommand.cs) | C# | 11 | 0 | 2 | 13 |
| [Shell/Commands/System/UptimeCommand.cs](/Shell/Commands/System/UptimeCommand.cs) | C# | 40 | 0 | 6 | 46 |
| [Shell/Commands/System/WhoamiCommand.cs](/Shell/Commands/System/WhoamiCommand.cs) | C# | 16 | 0 | 2 | 18 |
| [Shell/Commands/TestGuiCommand.cs](/Shell/Commands/TestGuiCommand.cs) | C# | 77 | 0 | 9 | 86 |
| [Shell/Commands/User/CpassCommand.cs](/Shell/Commands/User/CpassCommand.cs) | C# | 10 | 0 | 1 | 11 |
| [Shell/Commands/User/HostnameCommand.cs](/Shell/Commands/User/HostnameCommand.cs) | C# | 16 | 0 | 3 | 19 |
| [Shell/Commands/User/UserCommand.cs](/Shell/Commands/User/UserCommand.cs) | C# | 74 | 0 | 11 | 85 |
| [Shell/Commands/Utility/AliasCommand.cs](/Shell/Commands/Utility/AliasCommand.cs) | C# | 140 | 0 | 19 | 159 |
| [Shell/Commands/Utility/BackgroundCommand.cs](/Shell/Commands/Utility/BackgroundCommand.cs) | C# | 108 | 0 | 9 | 117 |
| [Shell/Commands/Utility/Base64Command.cs](/Shell/Commands/Utility/Base64Command.cs) | C# | 58 | 0 | 10 | 68 |
| [Shell/Commands/Utility/BeepCommand.cs](/Shell/Commands/Utility/BeepCommand.cs) | C# | 11 | 0 | 2 | 13 |
| [Shell/Commands/Utility/CalcCommand.cs](/Shell/Commands/Utility/CalcCommand.cs) | C# | 56 | 0 | 4 | 60 |
| [Shell/Commands/Utility/CalendarCommand.cs](/Shell/Commands/Utility/CalendarCommand.cs) | C# | 57 | 0 | 13 | 70 |
| [Shell/Commands/Utility/HistoryCommand.cs](/Shell/Commands/Utility/HistoryCommand.cs) | C# | 15 | 0 | 2 | 17 |
| [Shell/Commands/Utility/PromptCommand.cs](/Shell/Commands/Utility/PromptCommand.cs) | C# | 18 | 0 | 2 | 20 |
| [Shell/Shell.cs](/Shell/Shell.cs) | C# | 1,458 | 23 | 265 | 1,746 |
| [System/FileSystem.cs](/System/FileSystem.cs) | C# | 400 | 17 | 40 | 457 |
| [System/UserSystem.cs](/System/UserSystem.cs) | C# | 683 | 22 | 105 | 810 |
| [UI/CUI.cs](/UI/CUI.cs) | C# | 122 | 8 | 28 | 158 |
| [Utils/Base64.cs](/Utils/Base64.cs) | C# | 86 | 56 | 22 | 164 |
| [Utils/EnvironmentVariableManager.cs](/Utils/EnvironmentVariableManager.cs) | C# | 151 | 5 | 17 | 173 |
| [Utils/NetworkConfigManager.cs](/Utils/NetworkConfigManager.cs) | C# | 111 | 0 | 16 | 127 |
| [Utils/SHA256.cs](/Utils/SHA256.cs) | C# | 179 | 6 | 41 | 226 |
| [Utils/Version.cs](/Utils/Version.cs) | C# | 23 | 0 | 5 | 28 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/@vue\_devtools-api.js](/docs/cmleonos/docs/.vuepress/.cache/deps/@vue_devtools-api.js) | JavaScript | 4,356 | 145 | 5 | 4,506 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/@vuepress\_shared.js](/docs/cmleonos/docs/.vuepress/.cache/deps/@vuepress_shared.js) | JavaScript | 134 | 2 | 1 | 137 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/\_metadata.json](/docs/cmleonos/docs/.vuepress/.cache/deps/_metadata.json) | JSON | 37 | 0 | 0 | 37 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/chunk-OARA6QKZ.js](/docs/cmleonos/docs/.vuepress/.cache/deps/chunk-OARA6QKZ.js) | JavaScript | 12,582 | 238 | 5 | 12,825 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/package.json](/docs/cmleonos/docs/.vuepress/.cache/deps/package.json) | JSON | 3 | 0 | 1 | 4 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/vue-router.js](/docs/cmleonos/docs/.vuepress/.cache/deps/vue-router.js) | JavaScript | 2,371 | 25 | 9 | 2,405 |
| [docs/cmleonos/docs/.vuepress/.cache/deps/vue.js](/docs/cmleonos/docs/.vuepress/.cache/deps/vue.js) | JavaScript | 346 | 0 | 1 | 347 |
| [docs/cmleonos/docs/.vuepress/config.js](/docs/cmleonos/docs/.vuepress/config.js) | JavaScript | 12 | 1 | 7 | 20 |
| [docs/cmleonos/docs/.vuepress/dist/404.html](/docs/cmleonos/docs/.vuepress/dist/404.html) | HTML | 40 | 0 | 4 | 44 |
| [docs/cmleonos/docs/.vuepress/dist/assets/404.html-B-2P5V78.js](/docs/cmleonos/docs/.vuepress/dist/assets/404.html-B-2P5V78.js) | JavaScript | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/app-BITa06va.js](/docs/cmleonos/docs/.vuepress/dist/assets/app-BITa06va.js) | JavaScript | 28 | 4 | 1 | 33 |
| [docs/cmleonos/docs/.vuepress/dist/assets/commands.html-CJdMGWM7.js](/docs/cmleonos/docs/.vuepress/dist/assets/commands.html-CJdMGWM7.js) | JavaScript | 143 | 0 | 1 | 144 |
| [docs/cmleonos/docs/.vuepress/dist/assets/get-started.html-D\_vM18Nz.js](/docs/cmleonos/docs/.vuepress/dist/assets/get-started.html-D_vM18Nz.js) | JavaScript | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/index.html-DS7rXIvH.js](/docs/cmleonos/docs/.vuepress/dist/assets/index.html-DS7rXIvH.js) | JavaScript | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/lua.html-DxDsLuB0.js](/docs/cmleonos/docs/.vuepress/dist/assets/lua.html-DxDsLuB0.js) | JavaScript | 297 | 0 | 1 | 298 |
| [docs/cmleonos/docs/.vuepress/dist/assets/style-BmL0kmLr.css](/docs/cmleonos/docs/.vuepress/dist/assets/style-BmL0kmLr.css) | PostCSS | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/commands.html](/docs/cmleonos/docs/.vuepress/dist/commands.html) | HTML | 182 | 0 | 4 | 186 |
| [docs/cmleonos/docs/.vuepress/dist/get-started.html](/docs/cmleonos/docs/.vuepress/dist/get-started.html) | HTML | 40 | 0 | 4 | 44 |
| [docs/cmleonos/docs/.vuepress/dist/index.html](/docs/cmleonos/docs/.vuepress/dist/index.html) | HTML | 40 | 0 | 4 | 44 |
| [docs/cmleonos/docs/.vuepress/dist/lua.html](/docs/cmleonos/docs/.vuepress/dist/lua.html) | HTML | 336 | 0 | 4 | 340 |
| [docs/cmleonos/docs/README.md](/docs/cmleonos/docs/README.md) | Markdown | 33 | 0 | 4 | 37 |
| [docs/cmleonos/docs/commands.md](/docs/cmleonos/docs/commands.md) | Markdown | 629 | 0 | 191 | 820 |
| [docs/cmleonos/docs/get-started.md](/docs/cmleonos/docs/get-started.md) | Markdown | 14 | 0 | 3 | 17 |
| [docs/cmleonos/docs/lua.md](/docs/cmleonos/docs/lua.md) | Markdown | 940 | 0 | 339 | 1,279 |
| [docs/cmleonos/package.json](/docs/cmleonos/package.json) | JSON | 20 | 0 | 1 | 21 |
| [docs/cmleonos/pnpm-lock.yaml](/docs/cmleonos/pnpm-lock.yaml) | YAML | 2,410 | 0 | 674 | 3,084 |
| [global.json](/global.json) | JSON | 6 | 0 | 0 | 6 |
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

View File

@@ -0,0 +1,36 @@
# Diff Details
Date : 2026-02-06 22:40:24
Directory c:\\Users\\leon\\source\\repos\\CMLeonOS\\CMLeonOS
Total : 21 files, 692 codes, 0 comments, 53 blanks, all 745 lines
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [Shell/CommandList.cs](/Shell/CommandList.cs) | C# | 3 | 0 | 0 | 3 |
| [Shell/Commands/Help/Help.cs](/Shell/Commands/Help/Help.cs) | C# | 351 | 0 | 11 | 362 |
| [Shell/Commands/LabyrinthCommand.cs](/Shell/Commands/LabyrinthCommand.cs) | C# | 224 | 0 | 24 | 248 |
| [Shell/Commands/System/SettingsCommand.cs](/Shell/Commands/System/SettingsCommand.cs) | C# | 10 | 0 | 3 | 13 |
| [Shell/Commands/User/UserCommand.cs](/Shell/Commands/User/UserCommand.cs) | C# | 10 | 0 | 3 | 13 |
| [Shell/Shell.cs](/Shell/Shell.cs) | C# | 7 | 0 | 1 | 8 |
| [System/UserSystem.cs](/System/UserSystem.cs) | C# | 38 | 0 | 4 | 42 |
| [docs/cmleonos/docs/.vuepress/dist/assets/404.html-B-2P5V78.js](/docs/cmleonos/docs/.vuepress/dist/assets/404.html-B-2P5V78.js) | JavaScript | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/404.html-xATCGIq8.js](/docs/cmleonos/docs/.vuepress/dist/assets/404.html-xATCGIq8.js) | JavaScript | -1 | 0 | -1 | -2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/app-BITa06va.js](/docs/cmleonos/docs/.vuepress/dist/assets/app-BITa06va.js) | JavaScript | 28 | 4 | 1 | 33 |
| [docs/cmleonos/docs/.vuepress/dist/assets/app-DOooOitT.js](/docs/cmleonos/docs/.vuepress/dist/assets/app-DOooOitT.js) | JavaScript | -28 | -4 | -1 | -33 |
| [docs/cmleonos/docs/.vuepress/dist/assets/commands.html-2c\_EJOV\_.js](/docs/cmleonos/docs/.vuepress/dist/assets/commands.html-2c_EJOV_.js) | JavaScript | -135 | 0 | -1 | -136 |
| [docs/cmleonos/docs/.vuepress/dist/assets/commands.html-CJdMGWM7.js](/docs/cmleonos/docs/.vuepress/dist/assets/commands.html-CJdMGWM7.js) | JavaScript | 143 | 0 | 1 | 144 |
| [docs/cmleonos/docs/.vuepress/dist/assets/get-started.html-D7YgC\_d3.js](/docs/cmleonos/docs/.vuepress/dist/assets/get-started.html-D7YgC_d3.js) | JavaScript | -1 | 0 | -1 | -2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/get-started.html-D\_vM18Nz.js](/docs/cmleonos/docs/.vuepress/dist/assets/get-started.html-D_vM18Nz.js) | JavaScript | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/index.html-DOUHF5Iy.js](/docs/cmleonos/docs/.vuepress/dist/assets/index.html-DOUHF5Iy.js) | JavaScript | -1 | 0 | -1 | -2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/index.html-DS7rXIvH.js](/docs/cmleonos/docs/.vuepress/dist/assets/index.html-DS7rXIvH.js) | JavaScript | 1 | 0 | 1 | 2 |
| [docs/cmleonos/docs/.vuepress/dist/assets/lua.html-D4WURWuq.js](/docs/cmleonos/docs/.vuepress/dist/assets/lua.html-D4WURWuq.js) | JavaScript | -297 | 0 | -1 | -298 |
| [docs/cmleonos/docs/.vuepress/dist/assets/lua.html-DxDsLuB0.js](/docs/cmleonos/docs/.vuepress/dist/assets/lua.html-DxDsLuB0.js) | JavaScript | 297 | 0 | 1 | 298 |
| [docs/cmleonos/docs/.vuepress/dist/commands.html](/docs/cmleonos/docs/.vuepress/dist/commands.html) | HTML | 8 | 0 | 0 | 8 |
| [docs/cmleonos/docs/commands.md](/docs/cmleonos/docs/commands.md) | Markdown | 33 | 0 | 7 | 40 |
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details

View File

@@ -0,0 +1,23 @@
"filename", "language", "C#", "Markdown", "HTML", "JavaScript", "comment", "blank", "total"
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\CommandList.cs", "C#", 3, 0, 0, 0, 0, 0, 3
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Help\Help.cs", "C#", 351, 0, 0, 0, 0, 11, 362
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\LabyrinthCommand.cs", "C#", 224, 0, 0, 0, 0, 24, 248
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\SettingsCommand.cs", "C#", 10, 0, 0, 0, 0, 3, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\UserCommand.cs", "C#", 10, 0, 0, 0, 0, 3, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Shell.cs", "C#", 7, 0, 0, 0, 0, 1, 8
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\UserSystem.cs", "C#", 38, 0, 0, 0, 0, 4, 42
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-B-2P5V78.js", "JavaScript", 0, 0, 0, 1, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-xATCGIq8.js", "JavaScript", 0, 0, 0, -1, 0, -1, -2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-BITa06va.js", "JavaScript", 0, 0, 0, 28, 4, 1, 33
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-DOooOitT.js", "JavaScript", 0, 0, 0, -28, -4, -1, -33
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-2c_EJOV_.js", "JavaScript", 0, 0, 0, -135, 0, -1, -136
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-CJdMGWM7.js", "JavaScript", 0, 0, 0, 143, 0, 1, 144
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D7YgC_d3.js", "JavaScript", 0, 0, 0, -1, 0, -1, -2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D_vM18Nz.js", "JavaScript", 0, 0, 0, 1, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DOUHF5Iy.js", "JavaScript", 0, 0, 0, -1, 0, -1, -2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DS7rXIvH.js", "JavaScript", 0, 0, 0, 1, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-D4WURWuq.js", "JavaScript", 0, 0, 0, -297, 0, -1, -298
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-DxDsLuB0.js", "JavaScript", 0, 0, 0, 297, 0, 1, 298
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\commands.html", "HTML", 0, 0, 8, 0, 0, 0, 8
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\commands.md", "Markdown", 0, 33, 0, 0, 0, 7, 40
"Total", "-", 643, 33, 8, 8, 0, 53, 745
1 filename language C# Markdown HTML JavaScript comment blank total
2 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\CommandList.cs C# 3 0 0 0 0 0 3
3 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Help\Help.cs C# 351 0 0 0 0 11 362
4 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\LabyrinthCommand.cs C# 224 0 0 0 0 24 248
5 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\SettingsCommand.cs C# 10 0 0 0 0 3 13
6 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\UserCommand.cs C# 10 0 0 0 0 3 13
7 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Shell.cs C# 7 0 0 0 0 1 8
8 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\UserSystem.cs C# 38 0 0 0 0 4 42
9 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-B-2P5V78.js JavaScript 0 0 0 1 0 1 2
10 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-xATCGIq8.js JavaScript 0 0 0 -1 0 -1 -2
11 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-BITa06va.js JavaScript 0 0 0 28 4 1 33
12 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-DOooOitT.js JavaScript 0 0 0 -28 -4 -1 -33
13 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-2c_EJOV_.js JavaScript 0 0 0 -135 0 -1 -136
14 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-CJdMGWM7.js JavaScript 0 0 0 143 0 1 144
15 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D7YgC_d3.js JavaScript 0 0 0 -1 0 -1 -2
16 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D_vM18Nz.js JavaScript 0 0 0 1 0 1 2
17 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DOUHF5Iy.js JavaScript 0 0 0 -1 0 -1 -2
18 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DS7rXIvH.js JavaScript 0 0 0 1 0 1 2
19 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-D4WURWuq.js JavaScript 0 0 0 -297 0 -1 -298
20 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-DxDsLuB0.js JavaScript 0 0 0 297 0 1 298
21 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\commands.html HTML 0 0 8 0 0 0 8
22 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\commands.md Markdown 0 33 0 0 0 7 40
23 Total - 643 33 8 8 0 53 745

View File

@@ -0,0 +1,40 @@
# Diff Summary
Date : 2026-02-06 22:40:24
Directory c:\\Users\\leon\\source\\repos\\CMLeonOS\\CMLeonOS
Total : 21 files, 692 codes, 0 comments, 53 blanks, all 745 lines
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| C# | 7 | 643 | 0 | 46 | 689 |
| Markdown | 1 | 33 | 0 | 7 | 40 |
| HTML | 1 | 8 | 0 | 0 | 8 |
| JavaScript | 12 | 8 | 0 | 0 | 8 |
## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 21 | 692 | 0 | 53 | 745 |
| Shell | 6 | 605 | 0 | 42 | 647 |
| Shell (Files) | 2 | 10 | 0 | 1 | 11 |
| Shell\\Commands | 4 | 595 | 0 | 41 | 636 |
| Shell\\Commands (Files) | 1 | 224 | 0 | 24 | 248 |
| Shell\\Commands\\Help | 1 | 351 | 0 | 11 | 362 |
| Shell\\Commands\\System | 1 | 10 | 0 | 3 | 13 |
| Shell\\Commands\\User | 1 | 10 | 0 | 3 | 13 |
| System | 1 | 38 | 0 | 4 | 42 |
| docs | 14 | 49 | 0 | 7 | 56 |
| docs\\cmleonos | 14 | 49 | 0 | 7 | 56 |
| docs\\cmleonos\\docs | 14 | 49 | 0 | 7 | 56 |
| docs\\cmleonos\\docs (Files) | 1 | 33 | 0 | 7 | 40 |
| docs\\cmleonos\\docs\\.vuepress | 13 | 16 | 0 | 0 | 16 |
| docs\\cmleonos\\docs\\.vuepress\\dist | 13 | 16 | 0 | 0 | 16 |
| docs\\cmleonos\\docs\\.vuepress\\dist (Files) | 1 | 8 | 0 | 0 | 8 |
| docs\\cmleonos\\docs\\.vuepress\\dist\\assets | 12 | 8 | 0 | 0 | 8 |
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)

View File

@@ -0,0 +1,64 @@
Date : 2026-02-06 22:40:24
Directory : c:\Users\leon\source\repos\CMLeonOS\CMLeonOS
Total : 21 files, 692 codes, 0 comments, 53 blanks, all 745 lines
Languages
+------------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+------------+------------+------------+------------+------------+------------+
| C# | 7 | 643 | 0 | 46 | 689 |
| Markdown | 1 | 33 | 0 | 7 | 40 |
| HTML | 1 | 8 | 0 | 0 | 8 |
| JavaScript | 12 | 8 | 0 | 0 | 8 |
+------------+------------+------------+------------+------------+------------+
Directories
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 21 | 692 | 0 | 53 | 745 |
| Shell | 6 | 605 | 0 | 42 | 647 |
| Shell (Files) | 2 | 10 | 0 | 1 | 11 |
| Shell\Commands | 4 | 595 | 0 | 41 | 636 |
| Shell\Commands (Files) | 1 | 224 | 0 | 24 | 248 |
| Shell\Commands\Help | 1 | 351 | 0 | 11 | 362 |
| Shell\Commands\System | 1 | 10 | 0 | 3 | 13 |
| Shell\Commands\User | 1 | 10 | 0 | 3 | 13 |
| System | 1 | 38 | 0 | 4 | 42 |
| docs | 14 | 49 | 0 | 7 | 56 |
| docs\cmleonos | 14 | 49 | 0 | 7 | 56 |
| docs\cmleonos\docs | 14 | 49 | 0 | 7 | 56 |
| docs\cmleonos\docs (Files) | 1 | 33 | 0 | 7 | 40 |
| docs\cmleonos\docs\.vuepress | 13 | 16 | 0 | 0 | 16 |
| docs\cmleonos\docs\.vuepress\dist | 13 | 16 | 0 | 0 | 16 |
| docs\cmleonos\docs\.vuepress\dist (Files) | 1 | 8 | 0 | 0 | 8 |
| docs\cmleonos\docs\.vuepress\dist\assets | 12 | 8 | 0 | 0 | 8 |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\CommandList.cs | C# | 3 | 0 | 0 | 3 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Help\Help.cs | C# | 351 | 0 | 11 | 362 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\LabyrinthCommand.cs | C# | 224 | 0 | 24 | 248 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\SettingsCommand.cs | C# | 10 | 0 | 3 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\UserCommand.cs | C# | 10 | 0 | 3 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Shell.cs | C# | 7 | 0 | 1 | 8 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\UserSystem.cs | C# | 38 | 0 | 4 | 42 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-B-2P5V78.js | JavaScript | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-xATCGIq8.js | JavaScript | -1 | 0 | -1 | -2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-BITa06va.js | JavaScript | 28 | 4 | 1 | 33 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-DOooOitT.js | JavaScript | -28 | -4 | -1 | -33 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-2c_EJOV_.js | JavaScript | -135 | 0 | -1 | -136 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-CJdMGWM7.js | JavaScript | 143 | 0 | 1 | 144 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D7YgC_d3.js | JavaScript | -1 | 0 | -1 | -2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D_vM18Nz.js | JavaScript | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DOUHF5Iy.js | JavaScript | -1 | 0 | -1 | -2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DS7rXIvH.js | JavaScript | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-D4WURWuq.js | JavaScript | -297 | 0 | -1 | -298 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-DxDsLuB0.js | JavaScript | 297 | 0 | 1 | 298 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\commands.html | HTML | 8 | 0 | 0 | 8 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\commands.md | Markdown | 33 | 0 | 7 | 40 |
| Total | | 692 | 0 | 53 | 745 |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+

View File

@@ -0,0 +1,132 @@
"filename", "language", "C#", "Markdown", "JSON", "XML", "YAML", "HTML", "JavaScript", "PostCSS", "comment", "blank", "total"
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Branswe.md", "Markdown", 0, 261, 0, 0, 0, 0, 0, 0, 0, 67, 328
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\CMLeonOS.csproj", "XML", 0, 0, 0, 49, 0, 0, 0, 0, 1, 6, 56
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Editor\Editor.cs", "C#", 267, 0, 0, 0, 0, 0, 0, 0, 29, 35, 331
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Editor\Nano.cs", "C#", 727, 0, 0, 0, 0, 0, 0, 0, 16, 93, 836
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\Branswe.cs", "C#", 482, 0, 0, 0, 0, 0, 0, 0, 28, 53, 563
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\ByteString.cs", "C#", 41, 0, 0, 0, 0, 0, 0, 0, 0, 7, 48
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Coder.cs", "C#", 1101, 0, 0, 0, 0, 0, 0, 0, 26, 157, 1284
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Common.cs", "C#", 99, 0, 0, 0, 0, 0, 0, 0, 3, 27, 129
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Do.cs", "C#", 269, 0, 0, 0, 0, 0, 0, 0, 25, 50, 344
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Dump.cs", "C#", 187, 0, 0, 0, 0, 0, 0, 0, 0, 33, 220
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LLex.cs", "C#", 627, 0, 0, 0, 0, 0, 0, 0, 40, 93, 760
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaAPI.cs", "C#", 1335, 0, 0, 0, 0, 0, 0, 0, 64, 240, 1639
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaAuxLib.cs", "C#", 643, 0, 0, 0, 0, 0, 0, 0, 21, 92, 756
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaBaseLib.cs", "C#", 406, 0, 0, 0, 0, 0, 0, 0, 9, 43, 458
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaBitLib.cs", "C#", 179, 0, 0, 0, 0, 0, 0, 0, 0, 26, 205
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaCoroLib.cs", "C#", 137, 0, 0, 0, 0, 0, 0, 0, 0, 16, 153
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaDebug.cs", "C#", 443, 0, 0, 0, 0, 0, 0, 0, 19, 55, 517
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaDebugLib.cs", "C#", 20, 0, 0, 0, 0, 0, 0, 0, 0, 6, 26
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaEncLib.cs", "C#", 51, 0, 0, 0, 0, 0, 0, 0, 0, 13, 64
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaFile.cs", "C#", 115, 0, 0, 0, 0, 0, 0, 0, 2, 18, 135
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaFunc.cs", "C#", 69, 0, 0, 0, 0, 0, 0, 0, 6, 20, 95
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaIOLib.cs", "C#", 70, 0, 0, 0, 0, 0, 0, 0, 12, 19, 101
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaJsonLib.cs", "C#", 461, 0, 0, 0, 0, 0, 0, 0, 0, 65, 526
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaMathLib.cs", "C#", 285, 0, 0, 0, 0, 0, 0, 0, 10, 49, 344
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaObject.cs", "C#", 367, 0, 0, 0, 0, 0, 0, 0, 1, 52, 420
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaOsLib.cs", "C#", 206, 0, 0, 0, 0, 0, 0, 0, 0, 32, 238
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaPkgLib.cs", "C#", 256, 0, 0, 0, 0, 0, 0, 0, 57, 47, 360
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaState.cs", "C#", 250, 0, 0, 0, 0, 0, 0, 0, 6, 51, 307
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaStrLib.cs", "C#", 869, 0, 0, 0, 0, 0, 0, 0, 8, 61, 938
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaTable.cs", "C#", 465, 0, 0, 0, 0, 0, 0, 0, 37, 80, 582
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaTableLib.cs", "C#", 250, 0, 0, 0, 0, 0, 0, 0, 8, 24, 282
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\OpCodes.cs", "C#", 131, 0, 0, 0, 0, 0, 0, 0, 7, 27, 165
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Parser.cs", "C#", 1588, 0, 0, 0, 0, 0, 0, 0, 139, 219, 1946
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\TagMethod.cs", "C#", 91, 0, 0, 0, 0, 0, 0, 0, 2, 10, 103
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\ULDebug.cs", "C#", 13, 0, 0, 0, 0, 0, 0, 0, 2, 5, 20
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Undump.cs", "C#", 321, 0, 0, 0, 0, 0, 0, 0, 6, 50, 377
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Util.cs", "C#", 192, 0, 0, 0, 0, 0, 0, 0, 8, 39, 239
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\VM.cs", "C#", 1038, 0, 0, 0, 0, 0, 0, 0, 58, 161, 1257
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Kernel.cs", "C#", 228, 0, 0, 0, 0, 0, 0, 0, 33, 43, 304
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\LISENCE.md", "Markdown", 0, 485, 0, 0, 0, 0, 0, 0, 0, 110, 595
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\LogEntry.cs", "C#", 41, 0, 0, 0, 0, 0, 0, 0, 0, 5, 46
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\LogLevel.cs", "C#", 11, 0, 0, 0, 0, 0, 0, 0, 0, 1, 12
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\Logger.cs", "C#", 94, 0, 0, 0, 0, 0, 0, 0, 0, 18, 112
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\README.md", "Markdown", 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Settings\Settings.cs", "C#", 140, 0, 0, 0, 0, 0, 0, 0, 0, 17, 157
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\CommandList.cs", "C#", 208, 0, 0, 0, 0, 0, 0, 0, 0, 1, 209
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Editor\EditCommand.cs", "C#", 24, 0, 0, 0, 0, 0, 0, 0, 0, 3, 27
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Editor\NanoCommand.cs", "C#", 24, 0, 0, 0, 0, 0, 0, 0, 0, 3, 27
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Environment\EnvCommand.cs", "C#", 107, 0, 0, 0, 0, 0, 0, 0, 0, 8, 115
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CatCommand.cs", "C#", 18, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CdCommand.cs", "C#", 10, 0, 0, 0, 0, 0, 0, 0, 0, 1, 11
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CopyCommand.cs", "C#", 40, 0, 0, 0, 0, 0, 0, 0, 0, 6, 46
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\DiskInfoCommand.cs", "C#", 28, 0, 0, 0, 0, 0, 0, 0, 0, 5, 33
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\FindCommand.cs", "C#", 37, 0, 0, 0, 0, 0, 0, 0, 0, 5, 42
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\HeadCommand.cs", "C#", 46, 0, 0, 0, 0, 0, 0, 0, 0, 8, 54
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\LsCommand.cs", "C#", 10, 0, 0, 0, 0, 0, 0, 0, 0, 1, 11
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\MkdirCommand.cs", "C#", 20, 0, 0, 0, 0, 0, 0, 0, 0, 2, 22
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\MoveCommand.cs", "C#", 41, 0, 0, 0, 0, 0, 0, 0, 0, 7, 48
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\PwdCommand.cs", "C#", 11, 0, 0, 0, 0, 0, 0, 0, 0, 2, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RenameCommand.cs", "C#", 48, 0, 0, 0, 0, 0, 0, 0, 0, 9, 57
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RmCommand.cs", "C#", 42, 0, 0, 0, 0, 0, 0, 0, 0, 5, 47
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RmdirCommand.cs", "C#", 27, 0, 0, 0, 0, 0, 0, 0, 0, 3, 30
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TailCommand.cs", "C#", 47, 0, 0, 0, 0, 0, 0, 0, 0, 8, 55
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TouchCommand.cs", "C#", 25, 0, 0, 0, 0, 0, 0, 0, 0, 3, 28
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TreeCommand.cs", "C#", 67, 0, 0, 0, 0, 0, 0, 0, 0, 11, 78
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\WordCountCommand.cs", "C#", 45, 0, 0, 0, 0, 0, 0, 0, 0, 6, 51
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Help\Help.cs", "C#", 507, 0, 0, 0, 0, 0, 0, 0, 0, 26, 533
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Info\About.cs", "C#", 12, 0, 0, 0, 0, 0, 0, 0, 0, 2, 14
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Info\Version.cs", "C#", 16, 0, 0, 0, 0, 0, 0, 0, 0, 2, 18
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\LabyrinthCommand.cs", "C#", 224, 0, 0, 0, 0, 0, 0, 0, 0, 24, 248
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Power\RestartCommand.cs", "C#", 13, 0, 0, 0, 0, 0, 0, 0, 0, 2, 15
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Power\ShutdownCommand.cs", "C#", 13, 0, 0, 0, 0, 0, 0, 0, 0, 2, 15
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\BransweCommand.cs", "C#", 32, 0, 0, 0, 0, 0, 0, 0, 0, 5, 37
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\ComCommand.cs", "C#", 43, 0, 0, 0, 0, 0, 0, 0, 0, 8, 51
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\LuaCommand.cs", "C#", 165, 0, 0, 0, 0, 0, 0, 0, 0, 21, 186
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\ClearCommand.cs", "C#", 11, 0, 0, 0, 0, 0, 0, 0, 0, 2, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\DateCommand.cs", "C#", 11, 0, 0, 0, 0, 0, 0, 0, 0, 2, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\EchoCommand.cs", "C#", 12, 0, 0, 0, 0, 0, 0, 0, 0, 2, 14
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\SettingsCommand.cs", "C#", 62, 0, 0, 0, 0, 0, 0, 0, 0, 8, 70
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\TimeCommand.cs", "C#", 11, 0, 0, 0, 0, 0, 0, 0, 0, 2, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\UptimeCommand.cs", "C#", 40, 0, 0, 0, 0, 0, 0, 0, 0, 6, 46
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\WhoamiCommand.cs", "C#", 16, 0, 0, 0, 0, 0, 0, 0, 0, 2, 18
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\TestGuiCommand.cs", "C#", 77, 0, 0, 0, 0, 0, 0, 0, 0, 9, 86
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\CpassCommand.cs", "C#", 10, 0, 0, 0, 0, 0, 0, 0, 0, 1, 11
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\HostnameCommand.cs", "C#", 16, 0, 0, 0, 0, 0, 0, 0, 0, 3, 19
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\UserCommand.cs", "C#", 74, 0, 0, 0, 0, 0, 0, 0, 0, 11, 85
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\AliasCommand.cs", "C#", 140, 0, 0, 0, 0, 0, 0, 0, 0, 19, 159
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\BackgroundCommand.cs", "C#", 108, 0, 0, 0, 0, 0, 0, 0, 0, 9, 117
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\Base64Command.cs", "C#", 58, 0, 0, 0, 0, 0, 0, 0, 0, 10, 68
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\BeepCommand.cs", "C#", 11, 0, 0, 0, 0, 0, 0, 0, 0, 2, 13
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\CalcCommand.cs", "C#", 56, 0, 0, 0, 0, 0, 0, 0, 0, 4, 60
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\CalendarCommand.cs", "C#", 57, 0, 0, 0, 0, 0, 0, 0, 0, 13, 70
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\HistoryCommand.cs", "C#", 15, 0, 0, 0, 0, 0, 0, 0, 0, 2, 17
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\PromptCommand.cs", "C#", 18, 0, 0, 0, 0, 0, 0, 0, 0, 2, 20
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Shell.cs", "C#", 1458, 0, 0, 0, 0, 0, 0, 0, 23, 265, 1746
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\FileSystem.cs", "C#", 400, 0, 0, 0, 0, 0, 0, 0, 17, 40, 457
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\UserSystem.cs", "C#", 683, 0, 0, 0, 0, 0, 0, 0, 22, 105, 810
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\UI\CUI.cs", "C#", 122, 0, 0, 0, 0, 0, 0, 0, 8, 28, 158
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\Base64.cs", "C#", 86, 0, 0, 0, 0, 0, 0, 0, 56, 22, 164
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\EnvironmentVariableManager.cs", "C#", 151, 0, 0, 0, 0, 0, 0, 0, 5, 17, 173
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\NetworkConfigManager.cs", "C#", 111, 0, 0, 0, 0, 0, 0, 0, 0, 16, 127
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\SHA256.cs", "C#", 179, 0, 0, 0, 0, 0, 0, 0, 6, 41, 226
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\Version.cs", "C#", 23, 0, 0, 0, 0, 0, 0, 0, 0, 5, 28
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\@vue_devtools-api.js", "JavaScript", 0, 0, 0, 0, 0, 0, 4356, 0, 145, 5, 4506
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\@vuepress_shared.js", "JavaScript", 0, 0, 0, 0, 0, 0, 134, 0, 2, 1, 137
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\_metadata.json", "JSON", 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 37
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\chunk-OARA6QKZ.js", "JavaScript", 0, 0, 0, 0, 0, 0, 12582, 0, 238, 5, 12825
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\package.json", "JSON", 0, 0, 3, 0, 0, 0, 0, 0, 0, 1, 4
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\vue-router.js", "JavaScript", 0, 0, 0, 0, 0, 0, 2371, 0, 25, 9, 2405
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\vue.js", "JavaScript", 0, 0, 0, 0, 0, 0, 346, 0, 0, 1, 347
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\config.js", "JavaScript", 0, 0, 0, 0, 0, 0, 12, 0, 1, 7, 20
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\404.html", "HTML", 0, 0, 0, 0, 0, 40, 0, 0, 0, 4, 44
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-B-2P5V78.js", "JavaScript", 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-BITa06va.js", "JavaScript", 0, 0, 0, 0, 0, 0, 28, 0, 4, 1, 33
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-CJdMGWM7.js", "JavaScript", 0, 0, 0, 0, 0, 0, 143, 0, 0, 1, 144
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D_vM18Nz.js", "JavaScript", 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DS7rXIvH.js", "JavaScript", 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-DxDsLuB0.js", "JavaScript", 0, 0, 0, 0, 0, 0, 297, 0, 0, 1, 298
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\style-BmL0kmLr.css", "PostCSS", 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\commands.html", "HTML", 0, 0, 0, 0, 0, 182, 0, 0, 0, 4, 186
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\get-started.html", "HTML", 0, 0, 0, 0, 0, 40, 0, 0, 0, 4, 44
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\index.html", "HTML", 0, 0, 0, 0, 0, 40, 0, 0, 0, 4, 44
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\lua.html", "HTML", 0, 0, 0, 0, 0, 336, 0, 0, 0, 4, 340
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\README.md", "Markdown", 0, 33, 0, 0, 0, 0, 0, 0, 0, 4, 37
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\commands.md", "Markdown", 0, 629, 0, 0, 0, 0, 0, 0, 0, 191, 820
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\get-started.md", "Markdown", 0, 14, 0, 0, 0, 0, 0, 0, 0, 3, 17
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\lua.md", "Markdown", 0, 940, 0, 0, 0, 0, 0, 0, 0, 339, 1279
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\package.json", "JSON", 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 21
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\pnpm-lock.yaml", "YAML", 0, 0, 0, 0, 2410, 0, 0, 0, 0, 674, 3084
"c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\global.json", "JSON", 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 6
"Total", "-", 20531, 2364, 66, 49, 2410, 638, 20272, 1, 1235, 4442, 52008
1 filename language C# Markdown JSON XML YAML HTML JavaScript PostCSS comment blank total
2 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Branswe.md Markdown 0 261 0 0 0 0 0 0 0 67 328
3 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\CMLeonOS.csproj XML 0 0 0 49 0 0 0 0 1 6 56
4 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Editor\Editor.cs C# 267 0 0 0 0 0 0 0 29 35 331
5 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Editor\Nano.cs C# 727 0 0 0 0 0 0 0 16 93 836
6 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\Branswe.cs C# 482 0 0 0 0 0 0 0 28 53 563
7 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\ByteString.cs C# 41 0 0 0 0 0 0 0 0 7 48
8 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Coder.cs C# 1101 0 0 0 0 0 0 0 26 157 1284
9 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Common.cs C# 99 0 0 0 0 0 0 0 3 27 129
10 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Do.cs C# 269 0 0 0 0 0 0 0 25 50 344
11 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Dump.cs C# 187 0 0 0 0 0 0 0 0 33 220
12 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LLex.cs C# 627 0 0 0 0 0 0 0 40 93 760
13 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaAPI.cs C# 1335 0 0 0 0 0 0 0 64 240 1639
14 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaAuxLib.cs C# 643 0 0 0 0 0 0 0 21 92 756
15 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaBaseLib.cs C# 406 0 0 0 0 0 0 0 9 43 458
16 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaBitLib.cs C# 179 0 0 0 0 0 0 0 0 26 205
17 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaCoroLib.cs C# 137 0 0 0 0 0 0 0 0 16 153
18 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaDebug.cs C# 443 0 0 0 0 0 0 0 19 55 517
19 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaDebugLib.cs C# 20 0 0 0 0 0 0 0 0 6 26
20 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaEncLib.cs C# 51 0 0 0 0 0 0 0 0 13 64
21 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaFile.cs C# 115 0 0 0 0 0 0 0 2 18 135
22 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaFunc.cs C# 69 0 0 0 0 0 0 0 6 20 95
23 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaIOLib.cs C# 70 0 0 0 0 0 0 0 12 19 101
24 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaJsonLib.cs C# 461 0 0 0 0 0 0 0 0 65 526
25 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaMathLib.cs C# 285 0 0 0 0 0 0 0 10 49 344
26 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaObject.cs C# 367 0 0 0 0 0 0 0 1 52 420
27 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaOsLib.cs C# 206 0 0 0 0 0 0 0 0 32 238
28 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaPkgLib.cs C# 256 0 0 0 0 0 0 0 57 47 360
29 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaState.cs C# 250 0 0 0 0 0 0 0 6 51 307
30 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaStrLib.cs C# 869 0 0 0 0 0 0 0 8 61 938
31 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaTable.cs C# 465 0 0 0 0 0 0 0 37 80 582
32 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaTableLib.cs C# 250 0 0 0 0 0 0 0 8 24 282
33 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\OpCodes.cs C# 131 0 0 0 0 0 0 0 7 27 165
34 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Parser.cs C# 1588 0 0 0 0 0 0 0 139 219 1946
35 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\TagMethod.cs C# 91 0 0 0 0 0 0 0 2 10 103
36 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\ULDebug.cs C# 13 0 0 0 0 0 0 0 2 5 20
37 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Undump.cs C# 321 0 0 0 0 0 0 0 6 50 377
38 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Util.cs C# 192 0 0 0 0 0 0 0 8 39 239
39 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\VM.cs C# 1038 0 0 0 0 0 0 0 58 161 1257
40 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Kernel.cs C# 228 0 0 0 0 0 0 0 33 43 304
41 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\LISENCE.md Markdown 0 485 0 0 0 0 0 0 0 110 595
42 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\LogEntry.cs C# 41 0 0 0 0 0 0 0 0 5 46
43 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\LogLevel.cs C# 11 0 0 0 0 0 0 0 0 1 12
44 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\Logger.cs C# 94 0 0 0 0 0 0 0 0 18 112
45 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\README.md Markdown 0 2 0 0 0 0 0 0 0 0 2
46 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Settings\Settings.cs C# 140 0 0 0 0 0 0 0 0 17 157
47 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\CommandList.cs C# 208 0 0 0 0 0 0 0 0 1 209
48 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Editor\EditCommand.cs C# 24 0 0 0 0 0 0 0 0 3 27
49 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Editor\NanoCommand.cs C# 24 0 0 0 0 0 0 0 0 3 27
50 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Environment\EnvCommand.cs C# 107 0 0 0 0 0 0 0 0 8 115
51 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CatCommand.cs C# 18 0 0 0 0 0 0 0 0 2 20
52 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CdCommand.cs C# 10 0 0 0 0 0 0 0 0 1 11
53 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CopyCommand.cs C# 40 0 0 0 0 0 0 0 0 6 46
54 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\DiskInfoCommand.cs C# 28 0 0 0 0 0 0 0 0 5 33
55 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\FindCommand.cs C# 37 0 0 0 0 0 0 0 0 5 42
56 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\HeadCommand.cs C# 46 0 0 0 0 0 0 0 0 8 54
57 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\LsCommand.cs C# 10 0 0 0 0 0 0 0 0 1 11
58 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\MkdirCommand.cs C# 20 0 0 0 0 0 0 0 0 2 22
59 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\MoveCommand.cs C# 41 0 0 0 0 0 0 0 0 7 48
60 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\PwdCommand.cs C# 11 0 0 0 0 0 0 0 0 2 13
61 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RenameCommand.cs C# 48 0 0 0 0 0 0 0 0 9 57
62 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RmCommand.cs C# 42 0 0 0 0 0 0 0 0 5 47
63 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RmdirCommand.cs C# 27 0 0 0 0 0 0 0 0 3 30
64 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TailCommand.cs C# 47 0 0 0 0 0 0 0 0 8 55
65 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TouchCommand.cs C# 25 0 0 0 0 0 0 0 0 3 28
66 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TreeCommand.cs C# 67 0 0 0 0 0 0 0 0 11 78
67 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\WordCountCommand.cs C# 45 0 0 0 0 0 0 0 0 6 51
68 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Help\Help.cs C# 507 0 0 0 0 0 0 0 0 26 533
69 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Info\About.cs C# 12 0 0 0 0 0 0 0 0 2 14
70 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Info\Version.cs C# 16 0 0 0 0 0 0 0 0 2 18
71 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\LabyrinthCommand.cs C# 224 0 0 0 0 0 0 0 0 24 248
72 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Power\RestartCommand.cs C# 13 0 0 0 0 0 0 0 0 2 15
73 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Power\ShutdownCommand.cs C# 13 0 0 0 0 0 0 0 0 2 15
74 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\BransweCommand.cs C# 32 0 0 0 0 0 0 0 0 5 37
75 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\ComCommand.cs C# 43 0 0 0 0 0 0 0 0 8 51
76 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\LuaCommand.cs C# 165 0 0 0 0 0 0 0 0 21 186
77 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\ClearCommand.cs C# 11 0 0 0 0 0 0 0 0 2 13
78 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\DateCommand.cs C# 11 0 0 0 0 0 0 0 0 2 13
79 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\EchoCommand.cs C# 12 0 0 0 0 0 0 0 0 2 14
80 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\SettingsCommand.cs C# 62 0 0 0 0 0 0 0 0 8 70
81 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\TimeCommand.cs C# 11 0 0 0 0 0 0 0 0 2 13
82 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\UptimeCommand.cs C# 40 0 0 0 0 0 0 0 0 6 46
83 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\WhoamiCommand.cs C# 16 0 0 0 0 0 0 0 0 2 18
84 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\TestGuiCommand.cs C# 77 0 0 0 0 0 0 0 0 9 86
85 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\CpassCommand.cs C# 10 0 0 0 0 0 0 0 0 1 11
86 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\HostnameCommand.cs C# 16 0 0 0 0 0 0 0 0 3 19
87 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\UserCommand.cs C# 74 0 0 0 0 0 0 0 0 11 85
88 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\AliasCommand.cs C# 140 0 0 0 0 0 0 0 0 19 159
89 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\BackgroundCommand.cs C# 108 0 0 0 0 0 0 0 0 9 117
90 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\Base64Command.cs C# 58 0 0 0 0 0 0 0 0 10 68
91 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\BeepCommand.cs C# 11 0 0 0 0 0 0 0 0 2 13
92 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\CalcCommand.cs C# 56 0 0 0 0 0 0 0 0 4 60
93 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\CalendarCommand.cs C# 57 0 0 0 0 0 0 0 0 13 70
94 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\HistoryCommand.cs C# 15 0 0 0 0 0 0 0 0 2 17
95 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\PromptCommand.cs C# 18 0 0 0 0 0 0 0 0 2 20
96 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Shell.cs C# 1458 0 0 0 0 0 0 0 23 265 1746
97 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\FileSystem.cs C# 400 0 0 0 0 0 0 0 17 40 457
98 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\UserSystem.cs C# 683 0 0 0 0 0 0 0 22 105 810
99 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\UI\CUI.cs C# 122 0 0 0 0 0 0 0 8 28 158
100 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\Base64.cs C# 86 0 0 0 0 0 0 0 56 22 164
101 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\EnvironmentVariableManager.cs C# 151 0 0 0 0 0 0 0 5 17 173
102 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\NetworkConfigManager.cs C# 111 0 0 0 0 0 0 0 0 16 127
103 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\SHA256.cs C# 179 0 0 0 0 0 0 0 6 41 226
104 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\Version.cs C# 23 0 0 0 0 0 0 0 0 5 28
105 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\@vue_devtools-api.js JavaScript 0 0 0 0 0 0 4356 0 145 5 4506
106 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\@vuepress_shared.js JavaScript 0 0 0 0 0 0 134 0 2 1 137
107 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\_metadata.json JSON 0 0 37 0 0 0 0 0 0 0 37
108 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\chunk-OARA6QKZ.js JavaScript 0 0 0 0 0 0 12582 0 238 5 12825
109 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\package.json JSON 0 0 3 0 0 0 0 0 0 1 4
110 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\vue-router.js JavaScript 0 0 0 0 0 0 2371 0 25 9 2405
111 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\vue.js JavaScript 0 0 0 0 0 0 346 0 0 1 347
112 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\config.js JavaScript 0 0 0 0 0 0 12 0 1 7 20
113 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\404.html HTML 0 0 0 0 0 40 0 0 0 4 44
114 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-B-2P5V78.js JavaScript 0 0 0 0 0 0 1 0 0 1 2
115 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-BITa06va.js JavaScript 0 0 0 0 0 0 28 0 4 1 33
116 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-CJdMGWM7.js JavaScript 0 0 0 0 0 0 143 0 0 1 144
117 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D_vM18Nz.js JavaScript 0 0 0 0 0 0 1 0 0 1 2
118 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DS7rXIvH.js JavaScript 0 0 0 0 0 0 1 0 0 1 2
119 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-DxDsLuB0.js JavaScript 0 0 0 0 0 0 297 0 0 1 298
120 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\style-BmL0kmLr.css PostCSS 0 0 0 0 0 0 0 1 0 1 2
121 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\commands.html HTML 0 0 0 0 0 182 0 0 0 4 186
122 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\get-started.html HTML 0 0 0 0 0 40 0 0 0 4 44
123 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\index.html HTML 0 0 0 0 0 40 0 0 0 4 44
124 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\lua.html HTML 0 0 0 0 0 336 0 0 0 4 340
125 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\README.md Markdown 0 33 0 0 0 0 0 0 0 4 37
126 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\commands.md Markdown 0 629 0 0 0 0 0 0 0 191 820
127 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\get-started.md Markdown 0 14 0 0 0 0 0 0 0 3 17
128 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\lua.md Markdown 0 940 0 0 0 0 0 0 0 339 1279
129 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\package.json JSON 0 0 20 0 0 0 0 0 0 1 21
130 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\pnpm-lock.yaml YAML 0 0 0 0 2410 0 0 0 0 674 3084
131 c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\global.json JSON 0 0 6 0 0 0 0 0 0 0 6
132 Total - 20531 2364 66 49 2410 638 20272 1 1235 4442 52008

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,64 @@
# Summary
Date : 2026-02-06 22:40:24
Directory c:\\Users\\leon\\source\\repos\\CMLeonOS\\CMLeonOS
Total : 130 files, 46331 codes, 1235 comments, 4442 blanks, all 52008 lines
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| C# | 99 | 20,531 | 819 | 2,991 | 24,341 |
| JavaScript | 12 | 20,272 | 415 | 34 | 20,721 |
| YAML | 1 | 2,410 | 0 | 674 | 3,084 |
| Markdown | 7 | 2,364 | 0 | 714 | 3,078 |
| HTML | 5 | 638 | 0 | 20 | 658 |
| JSON | 4 | 66 | 0 | 2 | 68 |
| XML | 1 | 49 | 1 | 6 | 56 |
| PostCSS | 1 | 1 | 0 | 1 | 2 |
## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 130 | 46,331 | 1,235 | 4,442 | 52,008 |
| . (Files) | 6 | 1,031 | 34 | 226 | 1,291 |
| Editor | 2 | 994 | 45 | 128 | 1,167 |
| Interpreter | 34 | 13,057 | 604 | 1,940 | 15,601 |
| Interpreter (Files) | 1 | 482 | 28 | 53 | 563 |
| Interpreter\\UniLua | 33 | 12,575 | 576 | 1,887 | 15,038 |
| Logger | 3 | 146 | 0 | 24 | 170 |
| Settings | 1 | 140 | 0 | 17 | 157 |
| Shell | 50 | 4,211 | 23 | 565 | 4,799 |
| Shell (Files) | 2 | 1,666 | 23 | 266 | 1,955 |
| Shell\\Commands | 48 | 2,545 | 0 | 299 | 2,844 |
| Shell\\Commands (Files) | 2 | 301 | 0 | 33 | 334 |
| Shell\\Commands\\Editor | 2 | 48 | 0 | 6 | 54 |
| Shell\\Commands\\Environment | 1 | 107 | 0 | 8 | 115 |
| Shell\\Commands\\FileSystem | 17 | 562 | 0 | 84 | 646 |
| Shell\\Commands\\Help | 1 | 507 | 0 | 26 | 533 |
| Shell\\Commands\\Info | 2 | 28 | 0 | 4 | 32 |
| Shell\\Commands\\Power | 2 | 26 | 0 | 4 | 30 |
| Shell\\Commands\\Script | 3 | 240 | 0 | 34 | 274 |
| Shell\\Commands\\System | 7 | 163 | 0 | 24 | 187 |
| Shell\\Commands\\User | 3 | 100 | 0 | 15 | 115 |
| Shell\\Commands\\Utility | 8 | 463 | 0 | 61 | 524 |
| System | 2 | 1,083 | 39 | 145 | 1,267 |
| UI | 1 | 122 | 8 | 28 | 158 |
| Utils | 5 | 550 | 67 | 101 | 718 |
| docs | 26 | 24,997 | 415 | 1,268 | 26,680 |
| docs\\cmleonos | 26 | 24,997 | 415 | 1,268 | 26,680 |
| docs\\cmleonos (Files) | 2 | 2,430 | 0 | 675 | 3,105 |
| docs\\cmleonos\\docs | 24 | 22,567 | 415 | 593 | 23,575 |
| docs\\cmleonos\\docs (Files) | 4 | 1,616 | 0 | 537 | 2,153 |
| docs\\cmleonos\\docs\\.vuepress | 20 | 20,951 | 415 | 56 | 21,422 |
| docs\\cmleonos\\docs\\.vuepress (Files) | 1 | 12 | 1 | 7 | 20 |
| docs\\cmleonos\\docs\\.vuepress\\.cache | 7 | 19,829 | 410 | 22 | 20,261 |
| docs\\cmleonos\\docs\\.vuepress\\.cache\\deps | 7 | 19,829 | 410 | 22 | 20,261 |
| docs\\cmleonos\\docs\\.vuepress\\dist | 12 | 1,110 | 4 | 27 | 1,141 |
| docs\\cmleonos\\docs\\.vuepress\\dist (Files) | 5 | 638 | 0 | 20 | 658 |
| docs\\cmleonos\\docs\\.vuepress\\dist\\assets | 7 | 472 | 4 | 7 | 483 |
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

View File

@@ -0,0 +1,197 @@
Date : 2026-02-06 22:40:24
Directory : c:\Users\leon\source\repos\CMLeonOS\CMLeonOS
Total : 130 files, 46331 codes, 1235 comments, 4442 blanks, all 52008 lines
Languages
+------------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+------------+------------+------------+------------+------------+------------+
| C# | 99 | 20,531 | 819 | 2,991 | 24,341 |
| JavaScript | 12 | 20,272 | 415 | 34 | 20,721 |
| YAML | 1 | 2,410 | 0 | 674 | 3,084 |
| Markdown | 7 | 2,364 | 0 | 714 | 3,078 |
| HTML | 5 | 638 | 0 | 20 | 658 |
| JSON | 4 | 66 | 0 | 2 | 68 |
| XML | 1 | 49 | 1 | 6 | 56 |
| PostCSS | 1 | 1 | 0 | 1 | 2 |
+------------+------------+------------+------------+------------+------------+
Directories
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 130 | 46,331 | 1,235 | 4,442 | 52,008 |
| . (Files) | 6 | 1,031 | 34 | 226 | 1,291 |
| Editor | 2 | 994 | 45 | 128 | 1,167 |
| Interpreter | 34 | 13,057 | 604 | 1,940 | 15,601 |
| Interpreter (Files) | 1 | 482 | 28 | 53 | 563 |
| Interpreter\UniLua | 33 | 12,575 | 576 | 1,887 | 15,038 |
| Logger | 3 | 146 | 0 | 24 | 170 |
| Settings | 1 | 140 | 0 | 17 | 157 |
| Shell | 50 | 4,211 | 23 | 565 | 4,799 |
| Shell (Files) | 2 | 1,666 | 23 | 266 | 1,955 |
| Shell\Commands | 48 | 2,545 | 0 | 299 | 2,844 |
| Shell\Commands (Files) | 2 | 301 | 0 | 33 | 334 |
| Shell\Commands\Editor | 2 | 48 | 0 | 6 | 54 |
| Shell\Commands\Environment | 1 | 107 | 0 | 8 | 115 |
| Shell\Commands\FileSystem | 17 | 562 | 0 | 84 | 646 |
| Shell\Commands\Help | 1 | 507 | 0 | 26 | 533 |
| Shell\Commands\Info | 2 | 28 | 0 | 4 | 32 |
| Shell\Commands\Power | 2 | 26 | 0 | 4 | 30 |
| Shell\Commands\Script | 3 | 240 | 0 | 34 | 274 |
| Shell\Commands\System | 7 | 163 | 0 | 24 | 187 |
| Shell\Commands\User | 3 | 100 | 0 | 15 | 115 |
| Shell\Commands\Utility | 8 | 463 | 0 | 61 | 524 |
| System | 2 | 1,083 | 39 | 145 | 1,267 |
| UI | 1 | 122 | 8 | 28 | 158 |
| Utils | 5 | 550 | 67 | 101 | 718 |
| docs | 26 | 24,997 | 415 | 1,268 | 26,680 |
| docs\cmleonos | 26 | 24,997 | 415 | 1,268 | 26,680 |
| docs\cmleonos (Files) | 2 | 2,430 | 0 | 675 | 3,105 |
| docs\cmleonos\docs | 24 | 22,567 | 415 | 593 | 23,575 |
| docs\cmleonos\docs (Files) | 4 | 1,616 | 0 | 537 | 2,153 |
| docs\cmleonos\docs\.vuepress | 20 | 20,951 | 415 | 56 | 21,422 |
| docs\cmleonos\docs\.vuepress (Files) | 1 | 12 | 1 | 7 | 20 |
| docs\cmleonos\docs\.vuepress\.cache | 7 | 19,829 | 410 | 22 | 20,261 |
| docs\cmleonos\docs\.vuepress\.cache\deps | 7 | 19,829 | 410 | 22 | 20,261 |
| docs\cmleonos\docs\.vuepress\dist | 12 | 1,110 | 4 | 27 | 1,141 |
| docs\cmleonos\docs\.vuepress\dist (Files) | 5 | 638 | 0 | 20 | 658 |
| docs\cmleonos\docs\.vuepress\dist\assets | 7 | 472 | 4 | 7 | 483 |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Branswe.md | Markdown | 261 | 0 | 67 | 328 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\CMLeonOS.csproj | XML | 49 | 1 | 6 | 56 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Editor\Editor.cs | C# | 267 | 29 | 35 | 331 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Editor\Nano.cs | C# | 727 | 16 | 93 | 836 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\Branswe.cs | C# | 482 | 28 | 53 | 563 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\ByteString.cs | C# | 41 | 0 | 7 | 48 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Coder.cs | C# | 1,101 | 26 | 157 | 1,284 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Common.cs | C# | 99 | 3 | 27 | 129 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Do.cs | C# | 269 | 25 | 50 | 344 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Dump.cs | C# | 187 | 0 | 33 | 220 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LLex.cs | C# | 627 | 40 | 93 | 760 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaAPI.cs | C# | 1,335 | 64 | 240 | 1,639 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaAuxLib.cs | C# | 643 | 21 | 92 | 756 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaBaseLib.cs | C# | 406 | 9 | 43 | 458 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaBitLib.cs | C# | 179 | 0 | 26 | 205 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaCoroLib.cs | C# | 137 | 0 | 16 | 153 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaDebug.cs | C# | 443 | 19 | 55 | 517 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaDebugLib.cs | C# | 20 | 0 | 6 | 26 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaEncLib.cs | C# | 51 | 0 | 13 | 64 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaFile.cs | C# | 115 | 2 | 18 | 135 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaFunc.cs | C# | 69 | 6 | 20 | 95 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaIOLib.cs | C# | 70 | 12 | 19 | 101 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaJsonLib.cs | C# | 461 | 0 | 65 | 526 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaMathLib.cs | C# | 285 | 10 | 49 | 344 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaObject.cs | C# | 367 | 1 | 52 | 420 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaOsLib.cs | C# | 206 | 0 | 32 | 238 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaPkgLib.cs | C# | 256 | 57 | 47 | 360 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaState.cs | C# | 250 | 6 | 51 | 307 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaStrLib.cs | C# | 869 | 8 | 61 | 938 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaTable.cs | C# | 465 | 37 | 80 | 582 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\LuaTableLib.cs | C# | 250 | 8 | 24 | 282 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\OpCodes.cs | C# | 131 | 7 | 27 | 165 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Parser.cs | C# | 1,588 | 139 | 219 | 1,946 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\TagMethod.cs | C# | 91 | 2 | 10 | 103 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\ULDebug.cs | C# | 13 | 2 | 5 | 20 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Undump.cs | C# | 321 | 6 | 50 | 377 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\Util.cs | C# | 192 | 8 | 39 | 239 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Interpreter\UniLua\VM.cs | C# | 1,038 | 58 | 161 | 1,257 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Kernel.cs | C# | 228 | 33 | 43 | 304 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\LISENCE.md | Markdown | 485 | 0 | 110 | 595 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\LogEntry.cs | C# | 41 | 0 | 5 | 46 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\LogLevel.cs | C# | 11 | 0 | 1 | 12 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Logger\Logger.cs | C# | 94 | 0 | 18 | 112 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\README.md | Markdown | 2 | 0 | 0 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Settings\Settings.cs | C# | 140 | 0 | 17 | 157 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\CommandList.cs | C# | 208 | 0 | 1 | 209 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Editor\EditCommand.cs | C# | 24 | 0 | 3 | 27 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Editor\NanoCommand.cs | C# | 24 | 0 | 3 | 27 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Environment\EnvCommand.cs | C# | 107 | 0 | 8 | 115 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CatCommand.cs | C# | 18 | 0 | 2 | 20 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CdCommand.cs | C# | 10 | 0 | 1 | 11 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\CopyCommand.cs | C# | 40 | 0 | 6 | 46 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\DiskInfoCommand.cs | C# | 28 | 0 | 5 | 33 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\FindCommand.cs | C# | 37 | 0 | 5 | 42 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\HeadCommand.cs | C# | 46 | 0 | 8 | 54 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\LsCommand.cs | C# | 10 | 0 | 1 | 11 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\MkdirCommand.cs | C# | 20 | 0 | 2 | 22 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\MoveCommand.cs | C# | 41 | 0 | 7 | 48 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\PwdCommand.cs | C# | 11 | 0 | 2 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RenameCommand.cs | C# | 48 | 0 | 9 | 57 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RmCommand.cs | C# | 42 | 0 | 5 | 47 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\RmdirCommand.cs | C# | 27 | 0 | 3 | 30 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TailCommand.cs | C# | 47 | 0 | 8 | 55 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TouchCommand.cs | C# | 25 | 0 | 3 | 28 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\TreeCommand.cs | C# | 67 | 0 | 11 | 78 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\FileSystem\WordCountCommand.cs | C# | 45 | 0 | 6 | 51 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Help\Help.cs | C# | 507 | 0 | 26 | 533 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Info\About.cs | C# | 12 | 0 | 2 | 14 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Info\Version.cs | C# | 16 | 0 | 2 | 18 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\LabyrinthCommand.cs | C# | 224 | 0 | 24 | 248 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Power\RestartCommand.cs | C# | 13 | 0 | 2 | 15 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Power\ShutdownCommand.cs | C# | 13 | 0 | 2 | 15 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\BransweCommand.cs | C# | 32 | 0 | 5 | 37 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\ComCommand.cs | C# | 43 | 0 | 8 | 51 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Script\LuaCommand.cs | C# | 165 | 0 | 21 | 186 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\ClearCommand.cs | C# | 11 | 0 | 2 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\DateCommand.cs | C# | 11 | 0 | 2 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\EchoCommand.cs | C# | 12 | 0 | 2 | 14 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\SettingsCommand.cs | C# | 62 | 0 | 8 | 70 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\TimeCommand.cs | C# | 11 | 0 | 2 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\UptimeCommand.cs | C# | 40 | 0 | 6 | 46 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\System\WhoamiCommand.cs | C# | 16 | 0 | 2 | 18 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\TestGuiCommand.cs | C# | 77 | 0 | 9 | 86 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\CpassCommand.cs | C# | 10 | 0 | 1 | 11 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\HostnameCommand.cs | C# | 16 | 0 | 3 | 19 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\User\UserCommand.cs | C# | 74 | 0 | 11 | 85 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\AliasCommand.cs | C# | 140 | 0 | 19 | 159 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\BackgroundCommand.cs | C# | 108 | 0 | 9 | 117 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\Base64Command.cs | C# | 58 | 0 | 10 | 68 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\BeepCommand.cs | C# | 11 | 0 | 2 | 13 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\CalcCommand.cs | C# | 56 | 0 | 4 | 60 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\CalendarCommand.cs | C# | 57 | 0 | 13 | 70 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\HistoryCommand.cs | C# | 15 | 0 | 2 | 17 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Commands\Utility\PromptCommand.cs | C# | 18 | 0 | 2 | 20 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Shell\Shell.cs | C# | 1,458 | 23 | 265 | 1,746 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\FileSystem.cs | C# | 400 | 17 | 40 | 457 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\System\UserSystem.cs | C# | 683 | 22 | 105 | 810 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\UI\CUI.cs | C# | 122 | 8 | 28 | 158 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\Base64.cs | C# | 86 | 56 | 22 | 164 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\EnvironmentVariableManager.cs | C# | 151 | 5 | 17 | 173 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\NetworkConfigManager.cs | C# | 111 | 0 | 16 | 127 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\SHA256.cs | C# | 179 | 6 | 41 | 226 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\Utils\Version.cs | C# | 23 | 0 | 5 | 28 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\@vue_devtools-api.js | JavaScript | 4,356 | 145 | 5 | 4,506 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\@vuepress_shared.js | JavaScript | 134 | 2 | 1 | 137 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\_metadata.json | JSON | 37 | 0 | 0 | 37 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\chunk-OARA6QKZ.js | JavaScript | 12,582 | 238 | 5 | 12,825 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\package.json | JSON | 3 | 0 | 1 | 4 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\vue-router.js | JavaScript | 2,371 | 25 | 9 | 2,405 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\.cache\deps\vue.js | JavaScript | 346 | 0 | 1 | 347 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\config.js | JavaScript | 12 | 1 | 7 | 20 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\404.html | HTML | 40 | 0 | 4 | 44 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\404.html-B-2P5V78.js | JavaScript | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\app-BITa06va.js | JavaScript | 28 | 4 | 1 | 33 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\commands.html-CJdMGWM7.js | JavaScript | 143 | 0 | 1 | 144 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\get-started.html-D_vM18Nz.js | JavaScript | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\index.html-DS7rXIvH.js | JavaScript | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\lua.html-DxDsLuB0.js | JavaScript | 297 | 0 | 1 | 298 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\assets\style-BmL0kmLr.css | PostCSS | 1 | 0 | 1 | 2 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\commands.html | HTML | 182 | 0 | 4 | 186 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\get-started.html | HTML | 40 | 0 | 4 | 44 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\index.html | HTML | 40 | 0 | 4 | 44 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\.vuepress\dist\lua.html | HTML | 336 | 0 | 4 | 340 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\README.md | Markdown | 33 | 0 | 4 | 37 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\commands.md | Markdown | 629 | 0 | 191 | 820 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\get-started.md | Markdown | 14 | 0 | 3 | 17 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\docs\lua.md | Markdown | 940 | 0 | 339 | 1,279 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\package.json | JSON | 20 | 0 | 1 | 21 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\docs\cmleonos\pnpm-lock.yaml | YAML | 2,410 | 0 | 674 | 3,084 |
| c:\Users\leon\source\repos\CMLeonOS\CMLeonOS\global.json | JSON | 6 | 0 | 0 | 6 |
| Total | | 46,331 | 1,235 | 4,442 | 52,008 |
+--------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+

592
UI/Components.cs Normal file
View File

@@ -0,0 +1,592 @@
using System;
using System.Collections.Generic;
namespace CMLeonOS.UI
{
public delegate void ButtonClickHandler();
public class Button
{
public Rect Bounds { get; set; }
public string Text { get; set; }
public ConsoleColor ForegroundColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.DarkBlue;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public bool IsEnabled { get; set; } = true;
public bool IsFocused { get; set; } = false;
public ButtonClickHandler OnClick { get; set; }
public Button(Rect bounds, string text)
{
Bounds = bounds;
Text = text;
}
public Button(Rect bounds, string text, ConsoleColor foregroundColor, ConsoleColor backgroundColor, ConsoleColor borderColor)
{
Bounds = bounds;
Text = text;
ForegroundColor = foregroundColor;
BackgroundColor = backgroundColor;
BorderColor = borderColor;
}
public void Render()
{
if (!IsEnabled)
{
TUIHelper.SetColors(ConsoleColor.DarkGray, ConsoleColor.Black);
TUIHelper.DrawBox(Bounds, Text, ConsoleColor.DarkGray);
return;
}
if (IsFocused)
{
TUIHelper.SetColors(ForegroundColor, BackgroundColor);
TUIHelper.DrawBox(Bounds, Text, BorderColor);
}
else
{
TUIHelper.SetColors(ConsoleColor.Gray, ConsoleColor.Black);
TUIHelper.DrawBox(Bounds, Text, ConsoleColor.DarkGray);
}
}
public bool HandleKey(ConsoleKeyInfo key)
{
if (!IsEnabled) return false;
if (key.Key == ConsoleKey.Enter || key.Key == ConsoleKey.Spacebar)
{
OnClick?.Invoke();
return true;
}
return false;
}
}
public class InputBox
{
public Rect Bounds { get; set; }
public string Label { get; set; }
public string Value { get; set; } = string.Empty;
public string Placeholder { get; set; } = string.Empty;
public int MaxLength { get; set; } = 50;
public bool IsPassword { get; set; } = false;
public bool IsFocused { get; set; } = false;
public ConsoleColor ForegroundColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.Black;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public InputBox(Rect bounds, string label, string placeholder, int maxLength, bool isPassword, ConsoleColor foregroundColor, ConsoleColor backgroundColor, ConsoleColor borderColor)
{
Bounds = bounds;
Label = label;
Placeholder = placeholder;
MaxLength = maxLength;
IsPassword = isPassword;
ForegroundColor = foregroundColor;
BackgroundColor = backgroundColor;
BorderColor = borderColor;
}
public void Render()
{
TUIHelper.SetColors(ForegroundColor, BackgroundColor);
TUIHelper.DrawBox(Bounds, Label, BorderColor);
int inputY = Bounds.Top + 1;
string displayValue = IsPassword ? new string('*', Value.Length) : Value;
string displayText = string.IsNullOrEmpty(Value) ? Placeholder : displayValue;
Console.SetCursorPosition(Bounds.Left + 1, inputY);
Console.Write(TUIHelper.PadText(displayText, Bounds.Width - 2));
if (IsFocused)
{
TUIHelper.SaveCursor();
Console.SetCursorPosition(Bounds.Left + 1 + displayText.Length, inputY);
TUIHelper.ShowCursor();
}
}
public bool HandleKey(ConsoleKeyInfo key)
{
if (!IsFocused) return false;
if (key.Key == ConsoleKey.Backspace)
{
if (Value.Length > 0)
{
Value = Value.Substring(0, Value.Length - 1);
}
return true;
}
if (key.Key == ConsoleKey.Enter)
{
return true;
}
if (char.IsLetterOrDigit(key.KeyChar))
{
if (Value.Length < MaxLength)
{
Value += key.KeyChar;
}
return true;
}
return false;
}
}
public class Dialog
{
public Rect Bounds { get; set; }
public string Title { get; set; }
public string Message { get; set; }
public List<Button> Buttons { get; set; } = new List<Button>();
public int SelectedButtonIndex { get; set; } = 0;
public ConsoleColor TitleColor { get; set; } = ConsoleColor.White;
public ConsoleColor MessageColor { get; set; } = ConsoleColor.Gray;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.DarkBlue;
public Dialog(Rect bounds, string title, string message)
{
Bounds = bounds;
Title = title;
Message = message;
}
public Dialog(Rect bounds, string title, string message, List<Button> buttons)
{
Bounds = bounds;
Title = title;
Message = message;
Buttons = buttons;
}
public Dialog(Rect bounds, string title, string message, List<Button> buttons, int selectedIndex)
{
Bounds = bounds;
Title = title;
Message = message;
Buttons = buttons;
SelectedButtonIndex = selectedIndex;
for (int i = 0; i < Buttons.Count; i++)
{
Buttons[i].IsFocused = (i == SelectedButtonIndex);
}
}
public Dialog(Rect bounds, string title, string message, List<Button> buttons, int selectedIndex, ConsoleColor titleColor, ConsoleColor messageColor, ConsoleColor borderColor)
{
Bounds = bounds;
Title = title;
Message = message;
Buttons = buttons;
SelectedButtonIndex = selectedIndex;
TitleColor = titleColor;
MessageColor = messageColor;
BorderColor = borderColor;
}
public void Render()
{
TUIHelper.SetColors(TitleColor, BackgroundColor);
TUIHelper.DrawBox(Bounds, Title, BorderColor);
int messageY = Bounds.Top + 2;
TUIHelper.SetColors(MessageColor, BackgroundColor);
Console.SetCursorPosition(Bounds.Left + 1, messageY);
Console.Write(TUIHelper.TruncateText(Message, Bounds.Width - 2));
int buttonY = Bounds.Bottom - 2;
int buttonWidth = Bounds.Width / Buttons.Count;
int buttonX = Bounds.Left + 1;
for (int i = 0; i < Buttons.Count; i++)
{
Buttons[i].IsFocused = (i == SelectedButtonIndex);
Buttons[i].Bounds = new Rect(buttonX, buttonY, buttonWidth - 2, 3);
Buttons[i].Render();
buttonX += buttonWidth;
}
}
public bool HandleKey(ConsoleKeyInfo key)
{
if (key.Key == ConsoleKey.LeftArrow)
{
Buttons[SelectedButtonIndex].IsFocused = false;
SelectedButtonIndex = (SelectedButtonIndex - 1 + Buttons.Count) % Buttons.Count;
Buttons[SelectedButtonIndex].IsFocused = true;
return true;
}
if (key.Key == ConsoleKey.RightArrow)
{
Buttons[SelectedButtonIndex].IsFocused = false;
SelectedButtonIndex = (SelectedButtonIndex + 1) % Buttons.Count;
Buttons[SelectedButtonIndex].IsFocused = true;
return true;
}
if (key.Key == ConsoleKey.Enter)
{
if (SelectedButtonIndex >= 0 && SelectedButtonIndex < Buttons.Count)
{
Buttons[SelectedButtonIndex].OnClick?.Invoke();
}
return true;
}
return false;
}
}
public class Menu
{
public Rect Bounds { get; set; }
public List<MenuItem> Items { get; set; } = new List<MenuItem>();
public int SelectedIndex { get; set; } = 0;
public int ScrollOffset { get; set; } = 0;
public ConsoleColor SelectedColor { get; set; } = ConsoleColor.Yellow;
public ConsoleColor NormalColor { get; set; } = ConsoleColor.White;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.DarkBlue;
public Menu(Rect bounds)
{
Bounds = bounds;
}
public void Render()
{
TUIHelper.DrawBox(Bounds, string.Empty, BorderColor);
int startY = Bounds.Top + 1;
int maxHeight = Bounds.Height - 2;
for (int i = ScrollOffset; i < Items.Count && i < ScrollOffset + maxHeight; i++)
{
int y = startY + (i - ScrollOffset);
ConsoleColor color = (i == SelectedIndex) ? SelectedColor : NormalColor;
string prefix = (i == SelectedIndex) ? "> " : " ";
TUIHelper.SetColors(color, BackgroundColor);
Console.SetCursorPosition(Bounds.Left + 1, y);
Console.Write(prefix + TUIHelper.TruncateText(Items[i].Text, Bounds.Width - 3));
}
if (Items.Count > maxHeight)
{
int scrollY = Bounds.Bottom - 1;
TUIHelper.SetColors(ConsoleColor.Gray, BackgroundColor);
Console.SetCursorPosition(Bounds.Right - 5, scrollY);
Console.Write($"({ScrollOffset + 1}/{(int)Math.Ceiling((double)Items.Count / maxHeight)})");
}
}
public bool HandleKey(ConsoleKeyInfo key)
{
if (key.Key == ConsoleKey.UpArrow || key.Key == ConsoleKey.PageUp)
{
SelectedIndex = (SelectedIndex - 1 + Items.Count) % Items.Count;
if (SelectedIndex < ScrollOffset) ScrollOffset = SelectedIndex;
return true;
}
if (key.Key == ConsoleKey.DownArrow || key.Key == ConsoleKey.PageDown)
{
SelectedIndex = (SelectedIndex + 1) % Items.Count;
int maxScroll = Items.Count - (Bounds.Height - 2);
if (SelectedIndex >= ScrollOffset + (Bounds.Height - 2))
{
ScrollOffset = SelectedIndex - (Bounds.Height - 3);
}
return true;
}
if (key.Key == ConsoleKey.Enter)
{
if (SelectedIndex >= 0 && SelectedIndex < Items.Count)
{
Items[SelectedIndex].OnSelect?.Invoke();
}
return true;
}
return false;
}
}
public class MenuItem
{
public string Text { get; set; }
public Action OnSelect { get; set; }
public MenuItem(string text)
{
Text = text;
}
public MenuItem(string text, Action onSelect)
{
Text = text;
OnSelect = onSelect;
}
}
public class Label
{
public Point Position { get; set; }
public string Text { get; set; }
public ConsoleColor ForegroundColor { get; set; } = ConsoleColor.White;
public ConsoleColor? BackgroundColor { get; set; } = null;
public Label(Point position, string text)
{
Position = position;
Text = text;
}
public void Render()
{
if (BackgroundColor != null)
{
TUIHelper.SetColors(ForegroundColor, BackgroundColor.Value);
}
else
{
TUIHelper.SetColors(ForegroundColor, ConsoleColor.Black);
}
Console.SetCursorPosition(Position.X, Position.Y);
Console.Write(Text);
TUIHelper.ResetColors();
}
}
public class ProgressBar
{
public Point Position { get; set; }
public int Width { get; set; }
public int Value { get; set; }
public int MaxValue { get; set; }
public ConsoleColor FillColor { get; set; } = ConsoleColor.DarkGreen;
public ConsoleColor EmptyColor { get; set; } = ConsoleColor.DarkGray;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.Black;
public bool ShowPercentage { get; set; } = true;
public ProgressBar(Point position, int width, int maxValue)
{
Position = position;
Width = width;
MaxValue = maxValue;
}
public void Render()
{
int fillWidth = (int)((double)Value / MaxValue * Width);
int emptyWidth = Width - fillWidth;
TUIHelper.SetColors(FillColor, BackgroundColor);
Console.SetCursorPosition(Position.X, Position.Y);
Console.Write('[');
for (int i = 0; i < fillWidth; i++)
{
Console.Write('#');
}
TUIHelper.SetColors(EmptyColor, BackgroundColor);
for (int i = 0; i < emptyWidth; i++)
{
Console.Write('-');
}
TUIHelper.SetColors(BorderColor, BackgroundColor);
Console.Write(']');
if (ShowPercentage)
{
string percentage = ((double)Value / MaxValue * 100).ToString("F0") + "%";
TUIHelper.SetColors(ConsoleColor.White, BackgroundColor);
Console.Write($" {percentage}");
}
TUIHelper.ResetColors();
}
public void SetValue(int value)
{
Value = Math.Max(0, Math.Min(value, MaxValue));
}
}
public class TabControl
{
public Rect Bounds { get; set; }
public List<TabPage> Pages { get; set; } = new List<TabPage>();
public int SelectedIndex { get; set; } = 0;
public ConsoleColor SelectedColor { get; set; } = ConsoleColor.Yellow;
public ConsoleColor NormalColor { get; set; } = ConsoleColor.White;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.DarkBlue;
public TabControl(Rect bounds)
{
Bounds = bounds;
}
public void Render()
{
TUIHelper.DrawBox(Bounds, string.Empty, BorderColor);
int tabWidth = Bounds.Width / Pages.Count;
int tabX = Bounds.Left + 1;
for (int i = 0; i < Pages.Count; i++)
{
string prefix = (i == SelectedIndex) ? "[" : " ";
string suffix = (i == SelectedIndex) ? "]" : " ";
TUIHelper.SetColors((i == SelectedIndex) ? SelectedColor : NormalColor, BackgroundColor);
Console.SetCursorPosition(tabX, Bounds.Top);
Console.Write(prefix + Pages[i].Title + suffix);
tabX += tabWidth;
}
TUIHelper.SetColors(ConsoleColor.Gray, BackgroundColor);
Console.SetCursorPosition(Bounds.Left + 1, Bounds.Bottom - 1);
Console.Write(new string(' ', Bounds.Width - 2));
Pages[SelectedIndex].Render();
}
public bool HandleKey(ConsoleKeyInfo key)
{
if (key.Key == ConsoleKey.LeftArrow)
{
SelectedIndex = (SelectedIndex - 1 + Pages.Count) % Pages.Count;
return true;
}
if (key.Key == ConsoleKey.RightArrow)
{
SelectedIndex = (SelectedIndex + 1) % Pages.Count;
return true;
}
return false;
}
}
public class TabPage
{
public Rect Bounds { get; set; }
public string Title { get; set; }
public Action Render { get; set; }
public TabPage(Rect bounds, string title, Action render)
{
Bounds = bounds;
Title = title;
Render = render;
}
}
public class StatusBar
{
public Rect Bounds { get; set; }
public List<StatusBarItem> Items { get; set; } = new List<StatusBarItem>();
public ConsoleColor ForegroundColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.DarkBlue;
public StatusBar(Rect bounds)
{
Bounds = bounds;
}
public void Render()
{
TUIHelper.SetColors(ForegroundColor, BackgroundColor);
TUIHelper.DrawHorizontalLine(Bounds.Left, Bounds.Top, Bounds.Width, '-', null);
int x = Bounds.Left + 1;
foreach (var item in Items)
{
TUIHelper.SetColors(item.Color, BackgroundColor);
Console.SetCursorPosition(x, Bounds.Top);
Console.Write(item.Text);
x += item.Text.Length + 2;
}
}
}
public class StatusBarItem
{
public string Text { get; set; }
public ConsoleColor Color { get; set; } = ConsoleColor.White;
public StatusBarItem(string text)
{
Text = text;
}
public StatusBarItem(string text, ConsoleColor color)
{
Text = text;
Color = color;
}
}
public class Window
{
public Rect Bounds { get; set; }
public string Title { get; set; }
public Action RenderContent { get; set; }
public bool HasBorder { get; set; } = true;
public ConsoleColor TitleColor { get; set; } = ConsoleColor.White;
public ConsoleColor BorderColor { get; set; } = ConsoleColor.White;
public ConsoleColor BackgroundColor { get; set; } = ConsoleColor.DarkBlue;
public Window(Rect bounds, string title, Action renderContent)
{
Bounds = bounds;
Title = title;
RenderContent = renderContent;
}
public Window(Rect bounds, string title, Action renderContent, bool hasBorder)
{
Bounds = bounds;
Title = title;
RenderContent = renderContent;
HasBorder = hasBorder;
}
public void Render()
{
TUIHelper.SetColors(TitleColor, BackgroundColor);
if (HasBorder)
{
TUIHelper.DrawBox(Bounds, Title, BorderColor);
}
else
{
TUIHelper.DrawHorizontalLine(Bounds.Left, Bounds.Top, Bounds.Width, '-', null);
}
RenderContent?.Invoke();
}
}
}

289
UI/TUI.cs Normal file
View File

@@ -0,0 +1,289 @@
using System;
using System.Collections.Generic;
namespace CMLeonOS.UI
{
public struct Point
{
public int X { get; set; }
public int Y { get; set; }
public Point(int x, int y)
{
X = x;
Y = y;
}
public static Point operator +(Point a, Point b)
{
return new Point(a.X + b.X, a.Y + b.Y);
}
public static Point operator -(Point a, Point b)
{
return new Point(a.X - b.X, a.Y - b.Y);
}
}
public struct Size
{
public int Width { get; set; }
public int Height { get; set; }
public Size(int width, int height)
{
Width = width;
Height = height;
}
}
public struct Rect
{
public Point Position { get; set; }
public Size Size { get; set; }
public Rect(Point position, Size size)
{
Position = position;
Size = size;
}
public Rect(int x, int y, int width, int height)
{
Position = new Point(x, y);
Size = new Size(width, height);
}
public int Left => Position.X;
public int Top => Position.Y;
public int Right => Position.X + Size.Width;
public int Bottom => Position.Y + Size.Height;
public int Width => Size.Width;
public int Height => Size.Height;
public bool Contains(Point point)
{
return point.X >= Left && point.X < Right && point.Y >= Top && point.Y < Bottom;
}
}
public enum ConsoleColorEx
{
Black = ConsoleColor.Black,
DarkBlue = ConsoleColor.DarkBlue,
DarkGreen = ConsoleColor.DarkGreen,
DarkCyan = ConsoleColor.DarkCyan,
DarkRed = ConsoleColor.DarkRed,
DarkMagenta = ConsoleColor.DarkMagenta,
DarkYellow = ConsoleColor.DarkYellow,
Gray = ConsoleColor.Gray,
DarkGray = ConsoleColor.DarkGray,
Blue = ConsoleColor.Blue,
Green = ConsoleColor.Green,
Cyan = ConsoleColor.Cyan,
Red = ConsoleColor.Red,
Magenta = ConsoleColor.Magenta,
Yellow = ConsoleColor.Yellow,
White = ConsoleColor.White
}
public static class TUIHelper
{
public static int ConsoleWidth => 80;
public static int ConsoleHeight => 25;
public static void SetColors(ConsoleColor foreground, ConsoleColor background)
{
Console.ForegroundColor = foreground;
Console.BackgroundColor = background;
}
public static void ResetColors()
{
Console.ForegroundColor = ConsoleColor.White;
Console.BackgroundColor = ConsoleColor.Black;
}
public static void DrawBox(Rect rect, char horizontal = '-', char vertical = '|', char corner = '+', ConsoleColor? borderColor = null)
{
if (borderColor != null)
{
SetColors(borderColor.Value, ConsoleColor.Black);
}
for (int y = rect.Top; y < rect.Bottom; y++)
{
Console.SetCursorPosition(rect.Left, y);
if (y == rect.Top || y == rect.Bottom - 1)
{
Console.Write(corner);
for (int x = rect.Left + 1; x < rect.Right - 1; x++)
{
Console.Write(horizontal);
}
Console.Write(corner);
}
else
{
Console.Write(vertical);
for (int x = rect.Left + 1; x < rect.Right - 1; x++)
{
Console.Write(' ');
}
Console.Write(vertical);
}
}
ResetColors();
}
public static void DrawBox(Rect rect, string title, ConsoleColor? borderColor = null)
{
if (borderColor != null)
{
SetColors(borderColor.Value, ConsoleColor.Black);
}
char horizontal = '-';
char vertical = '|';
char corner = '+';
for (int y = rect.Top; y < rect.Bottom; y++)
{
Console.SetCursorPosition(rect.Left, y);
if (y == rect.Top)
{
Console.Write(corner);
for (int x = rect.Left + 1; x < rect.Right - 1; x++)
{
Console.Write(horizontal);
}
Console.Write(corner);
}
else if (y == rect.Bottom - 1)
{
Console.Write(corner);
for (int x = rect.Left + 1; x < rect.Right - 1; x++)
{
Console.Write(horizontal);
}
Console.Write(corner);
}
else
{
Console.Write(vertical);
for (int x = rect.Left + 1; x < rect.Right - 1; x++)
{
Console.Write(' ');
}
Console.Write(vertical);
}
}
if (!string.IsNullOrEmpty(title))
{
int titleX = rect.Left + (rect.Width - title.Length) / 2;
Console.SetCursorPosition(titleX, rect.Top);
Console.Write(title);
}
ResetColors();
}
public static void DrawText(Point position, string text, ConsoleColor? color = null)
{
if (color != null)
{
SetColors(color.Value, ConsoleColor.Black);
}
Console.SetCursorPosition(position.X, position.Y);
Console.Write(text);
ResetColors();
}
public static void DrawCenteredText(int y, string text, ConsoleColor? color = null)
{
if (color != null)
{
SetColors(color.Value, ConsoleColor.Black);
}
int x = (ConsoleWidth - text.Length) / 2;
Console.SetCursorPosition(x, y);
Console.Write(text);
ResetColors();
}
public static void DrawHorizontalLine(int x, int y, int width, char c = '-', ConsoleColor? color = null)
{
if (color != null)
{
SetColors(color.Value, ConsoleColor.Black);
}
Console.SetCursorPosition(x, y);
Console.Write(new string(c, width));
ResetColors();
}
public static void DrawVerticalLine(int x, int y, int height, char c = '|', ConsoleColor? color = null)
{
if (color != null)
{
SetColors(color.Value, ConsoleColor.Black);
}
for (int i = 0; i < height; i++)
{
Console.SetCursorPosition(x, y + i);
Console.Write(c);
}
ResetColors();
}
public static void ClearArea(Rect rect)
{
for (int y = rect.Top; y < rect.Bottom; y++)
{
Console.SetCursorPosition(rect.Left, y);
Console.Write(new string(' ', rect.Width));
}
}
public static void SaveCursor()
{
Console.SetCursorPosition(Console.CursorLeft, Console.CursorTop);
}
public static void HideCursor()
{
Console.CursorVisible = false;
}
public static void ShowCursor()
{
Console.CursorVisible = true;
}
public static string TruncateText(string text, int maxLength)
{
if (text.Length <= maxLength)
{
return text;
}
return text.Substring(0, maxLength - 3) + "...";
}
public static string PadText(string text, int totalWidth, char padChar = ' ')
{
if (text.Length >= totalWidth)
{
return text;
}
return text + new string(padChar, totalWidth - text.Length);
}
}
}

332
UI/TUIDemo.cs Normal file
View File

@@ -0,0 +1,332 @@
using System;
using System.Threading;
using CMLeonOS.UI;
namespace CMLeonOS.UI.Examples
{
public static class TUIDemo
{
public static void Run()
{
Console.Clear();
Console.Title = "CMLeonOS TUI Library Demo";
bool running = true;
while (running)
{
ShowMainMenu();
}
}
private static void ShowMainMenu()
{
Console.Clear();
var menu = new Menu(new Rect(5, 5, 70, 15));
menu.Items.Add(new MenuItem("Button Demo", () => ShowButtonDemo()));
menu.Items.Add(new MenuItem("Input Box Demo", () => ShowInputBoxDemo()));
menu.Items.Add(new MenuItem("Dialog Demo", () => ShowDialogDemo()));
menu.Items.Add(new MenuItem("Progress Bar Demo", () => ShowProgressBarDemo()));
menu.Items.Add(new MenuItem("Tab Control Demo", () => ShowTabControlDemo()));
menu.Items.Add(new MenuItem("Exit", () => Environment.Exit(0)));
menu.Render();
bool menuRunning = true;
while (menuRunning)
{
var key = Console.ReadKey(true);
if (menu.HandleKey(key))
{
Thread.Sleep(100);
}
else if (key.Key == ConsoleKey.Escape)
{
menuRunning = false;
}
}
}
private static void ShowButtonDemo()
{
Console.Clear();
var titleBar = new Window(new Rect(0, 0, 80, 3), "Button Demo", () =>
{
Console.Clear();
ShowMainMenu();
}, false);
titleBar.Render();
var button1 = new Button(new Rect(10, 8, 20, 3), "Click Me!", ConsoleColor.Cyan, ConsoleColor.DarkBlue, ConsoleColor.White);
var button2 = new Button(new Rect(35, 8, 20, 3), "Disabled", ConsoleColor.Gray, ConsoleColor.Black, ConsoleColor.DarkGray);
button2.IsEnabled = false;
var button3 = new Button(new Rect(60, 8, 20, 3), "Hover Me", ConsoleColor.Yellow, ConsoleColor.DarkRed, ConsoleColor.White);
button1.Render();
button2.Render();
button3.Render();
var label = new Label(new Point(10, 13), "Button Component Examples:");
label.Render();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Press ENTER to click, ESC to return"));
statusBar.Render();
int focusedButton = 0;
button1.IsFocused = true;
bool demoRunning = true;
while (demoRunning)
{
var key = Console.ReadKey(true);
if (key.Key == ConsoleKey.Escape)
{
demoRunning = false;
}
else if (key.Key == ConsoleKey.Enter)
{
if (focusedButton == 0 && button1.IsEnabled)
{
Console.SetCursorPosition(10, 14);
Console.Write("Clicked!");
Thread.Sleep(1000);
}
}
else if (key.Key == ConsoleKey.LeftArrow)
{
button1.IsFocused = false;
button3.IsFocused = false;
focusedButton = (focusedButton - 1 + 3) % 3;
if (focusedButton == 0 && button1.IsEnabled) button1.IsFocused = true;
if (focusedButton == 2 && button2.IsEnabled) button2.IsFocused = true;
if (focusedButton == 1 && button3.IsEnabled) button3.IsFocused = true;
}
else if (key.Key == ConsoleKey.RightArrow)
{
button1.IsFocused = false;
button3.IsFocused = false;
focusedButton = (focusedButton + 1) % 3;
if (focusedButton == 0 && button1.IsEnabled) button1.IsFocused = true;
if (focusedButton == 2 && button2.IsEnabled) button2.IsFocused = true;
if (focusedButton == 1 && button3.IsEnabled) button3.IsFocused = true;
}
button1.Render();
button2.Render();
button3.Render();
}
}
private static void ShowInputBoxDemo()
{
Console.Clear();
var titleBar = new Window(new Rect(0, 0, 80, 3), "Input Box Demo", () =>
{
Console.Clear();
ShowMainMenu();
}, false);
titleBar.Render();
var inputBox = new InputBox(new Rect(20, 8, 40, 3), "Enter your name:", "John Doe", 20, false, ConsoleColor.White, ConsoleColor.Black, ConsoleColor.White);
inputBox.MaxLength = 20;
var button = new Button(new Rect(65, 8, 15, 3), "Submit");
button.OnClick = () =>
{
Console.SetCursorPosition(20, 12);
Console.Write($"Submitted: {inputBox.Value}");
Thread.Sleep(2000);
};
inputBox.Render();
button.Render();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Press ENTER to submit, ESC to return"));
statusBar.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = Console.ReadKey(true);
if (key.Key == ConsoleKey.Escape)
{
demoRunning = false;
}
else if (inputBox.HandleKey(key))
{
inputBox.Render();
}
else if (button.HandleKey(key))
{
button.Render();
}
}
}
private static void ShowDialogDemo()
{
Console.Clear();
var titleBar = new Window(new Rect(0, 0, 80, 3), "Dialog Demo", () =>
{
Console.Clear();
ShowMainMenu();
}, false);
titleBar.Render();
var dialog = new Dialog(new Rect(15, 5, 50, 7), "Confirm Action", "Are you sure you want to proceed?");
dialog.Buttons.Add(new Button(new Rect(17, 14, 12, 3), "Yes", ConsoleColor.White, ConsoleColor.DarkGreen, ConsoleColor.White));
dialog.Buttons[0].OnClick = () =>
{
Console.SetCursorPosition(15, 13);
Console.Write("Confirmed!");
Thread.Sleep(1500);
};
dialog.Buttons.Add(new Button(new Rect(31, 14, 12, 3), "No", ConsoleColor.White, ConsoleColor.DarkRed, ConsoleColor.White));
dialog.Buttons[1].OnClick = () =>
{
Console.SetCursorPosition(31, 13);
Console.Write("Cancelled!");
Thread.Sleep(1500);
};
dialog.Render();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Use LEFT/RIGHT to select, ENTER to choose"));
statusBar.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = Console.ReadKey(true);
if (key.Key == ConsoleKey.Escape)
{
demoRunning = false;
}
else if (dialog.HandleKey(key))
{
dialog.Render();
}
}
}
private static void ShowProgressBarDemo()
{
Console.Clear();
var titleBar = new Window(new Rect(0, 0, 80, 3), "Progress Bar Demo", () =>
{
Console.Clear();
ShowMainMenu();
}, false);
titleBar.Render();
var progressBar = new ProgressBar(new Point(15, 10), 50, 100);
progressBar.Value = 0;
var button = new Button(new Rect(35, 13, 15, 3), "Start");
button.OnClick = () =>
{
for (int i = 0; i <= 100; i++)
{
progressBar.SetValue(i);
progressBar.Render();
Thread.Sleep(30);
}
};
progressBar.Render();
button.Render();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Press ENTER to start, ESC to return"));
statusBar.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = Console.ReadKey(true);
if (key.Key == ConsoleKey.Escape)
{
demoRunning = false;
}
else if (button.HandleKey(key))
{
button.Render();
}
}
}
private static void ShowTabControlDemo()
{
Console.Clear();
var titleBar = new Window(new Rect(0, 0, 80, 3), "Tab Control Demo", () =>
{
Console.Clear();
ShowMainMenu();
}, false);
titleBar.Render();
var tabControl = new TabControl(new Rect(5, 5, 70, 15));
tabControl.Pages.Add(new TabPage(new Rect(5, 8, 70, 11), "Tab 1", () =>
{
TUIHelper.SetColors(ConsoleColor.Cyan, ConsoleColor.Black);
Console.SetCursorPosition(10, 10);
Console.Write("Tab 1 Content");
TUIHelper.ResetColors();
}));
tabControl.Pages.Add(new TabPage(new Rect(5, 8, 70, 11), "Tab 2", () =>
{
TUIHelper.SetColors(ConsoleColor.Green, ConsoleColor.Black);
Console.SetCursorPosition(10, 10);
Console.Write("Tab 2 Content");
TUIHelper.ResetColors();
}));
tabControl.Pages.Add(new TabPage(new Rect(5, 8, 70, 11), "Tab 3", () =>
{
TUIHelper.SetColors(ConsoleColor.Magenta, ConsoleColor.Black);
Console.SetCursorPosition(10, 10);
Console.Write("Tab 3 Content");
TUIHelper.ResetColors();
}));
tabControl.Render();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Use LEFT/RIGHT to switch tabs, ESC to return"));
statusBar.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = Console.ReadKey(true);
if (key.Key == ConsoleKey.Escape)
{
demoRunning = false;
}
else if (tabControl.HandleKey(key))
{
tabControl.Render();
}
}
}
}
}

View File

@@ -190,6 +190,9 @@ namespace CMLeonOS.shell
case "testgui":
shell.ProcessTestGui();
break;
case "testtui":
shell.ProcessTestTUI();
break;
case "labyrinth":
shell.ProcessLabyrinth();
break;

View File

@@ -0,0 +1,369 @@
using System;
using System.Threading;
using CMLeonOS.UI;
namespace CMLeonOS.Commands
{
public static class TestTUICommand
{
public static void RunTestTUI()
{
global::System.Console.Clear();
while (true)
{
ShowMainMenu();
}
}
private static void ShowMainMenu()
{
global::System.Console.Clear();
var menu = new Menu(new Rect(5, 5, 70, 15));
menu.Items.Add(new MenuItem("Button Demo", () => ShowButtonDemo()));
menu.Items.Add(new MenuItem("Input Box Demo", () => ShowInputBoxDemo()));
menu.Items.Add(new MenuItem("Dialog Demo", () => ShowDialogDemo()));
menu.Items.Add(new MenuItem("Progress Bar Demo", () => ShowProgressBarDemo()));
menu.Items.Add(new MenuItem("Tab Control Demo", () => ShowTabControlDemo()));
menu.Items.Add(new MenuItem("Menu Demo", () => ShowMenuDemo()));
menu.Items.Add(new MenuItem("Exit", () => global::System.Environment.Exit(0)));
menu.Render();
bool menuRunning = true;
while (menuRunning)
{
var key = global::System.Console.ReadKey(true);
if (menu.HandleKey(key))
{
if (key.Key == global::System.ConsoleKey.Enter)
{
menuRunning = false;
}
else
{
menu.Render();
global::System.Threading.Thread.Sleep(100);
}
}
else if (key.Key == global::System.ConsoleKey.Escape)
{
menuRunning = false;
}
}
}
private static void ShowButtonDemo()
{
global::System.Console.Clear();
var label = new Label(new Point(10, 13), "Button Component Examples:");
label.Render();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Press ENTER to click, ESC to return"));
statusBar.Render();
var button1 = new Button(new Rect(10, 8, 20, 3), "Click Me!", global::System.ConsoleColor.Cyan, global::System.ConsoleColor.DarkBlue, global::System.ConsoleColor.White);
var button2 = new Button(new Rect(35, 8, 20, 3), "Disabled", global::System.ConsoleColor.Gray, global::System.ConsoleColor.Black, global::System.ConsoleColor.DarkGray);
button2.IsEnabled = false;
var button3 = new Button(new Rect(60, 8, 20, 3), "Hover Me", global::System.ConsoleColor.Yellow, global::System.ConsoleColor.DarkRed, global::System.ConsoleColor.White);
button1.Render();
button2.Render();
button3.Render();
int focusedButton = 0;
button1.IsFocused = true;
bool demoRunning = true;
while (demoRunning)
{
var key = global::System.Console.ReadKey(true);
if (key.Key == global::System.ConsoleKey.Escape)
{
demoRunning = false;
}
else if (key.Key == global::System.ConsoleKey.Enter)
{
if (focusedButton == 0 && button1.IsEnabled)
{
global::System.Console.SetCursorPosition(10, 14);
global::System.Console.Write("Clicked!");
global::System.Threading.Thread.Sleep(1000);
}
}
else if (key.Key == global::System.ConsoleKey.LeftArrow)
{
button1.IsFocused = false;
button3.IsFocused = false;
focusedButton = (focusedButton - 1 + 3) % 3;
if (focusedButton == 0 && button1.IsEnabled) button1.IsFocused = true;
if (focusedButton == 1 && button2.IsEnabled) button2.IsFocused = true;
if (focusedButton == 2 && button3.IsEnabled) button3.IsFocused = true;
}
else if (key.Key == global::System.ConsoleKey.RightArrow)
{
button1.IsFocused = false;
button3.IsFocused = false;
focusedButton = (focusedButton + 1) % 3;
if (focusedButton == 0 && button1.IsEnabled) button1.IsFocused = true;
if (focusedButton == 1 && button2.IsEnabled) button2.IsFocused = true;
if (focusedButton == 2 && button3.IsEnabled) button3.IsFocused = true;
}
button1.Render();
button2.Render();
button3.Render();
}
}
private static void ShowInputBoxDemo()
{
global::System.Console.Clear();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Press ENTER to submit, ESC to return"));
statusBar.Render();
var inputBox = new InputBox(new Rect(20, 8, 40, 3), "Enter your name:", "John Doe", 20, false, global::System.ConsoleColor.White, global::System.ConsoleColor.Black, global::System.ConsoleColor.White);
inputBox.MaxLength = 20;
inputBox.IsFocused = true;
var button = new Button(new Rect(65, 8, 15, 3), "Submit");
button.OnClick = () =>
{
global::System.Console.SetCursorPosition(20, 12);
global::System.Console.Write($"Submitted: {inputBox.Value}");
global::System.Threading.Thread.Sleep(2000);
};
inputBox.Render();
button.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = global::System.Console.ReadKey(true);
if (key.Key == global::System.ConsoleKey.Escape)
{
demoRunning = false;
}
else if (inputBox.HandleKey(key))
{
inputBox.Render();
}
else if (button.HandleKey(key))
{
button.Render();
}
}
}
private static void ShowDialogDemo()
{
global::System.Console.Clear();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Use LEFT/RIGHT to select, ENTER to choose"));
statusBar.Render();
var dialog = new Dialog(new Rect(15, 5, 50, 7), "Confirm Action", "Are you sure you want to proceed?");
dialog.Buttons.Add(new Button(new Rect(17, 14, 12, 3), "Yes", global::System.ConsoleColor.White, global::System.ConsoleColor.DarkGreen, global::System.ConsoleColor.White));
dialog.Buttons[0].OnClick = () =>
{
global::System.Console.SetCursorPosition(15, 13);
global::System.Console.Write("Confirmed!");
global::System.Threading.Thread.Sleep(1500);
};
dialog.Buttons.Add(new Button(new Rect(31, 14, 12, 3), "No", global::System.ConsoleColor.White, global::System.ConsoleColor.DarkRed, global::System.ConsoleColor.White));
dialog.Buttons[1].OnClick = () =>
{
global::System.Console.SetCursorPosition(31, 13);
global::System.Console.Write("Cancelled!");
global::System.Threading.Thread.Sleep(1500);
};
dialog.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = global::System.Console.ReadKey(true);
if (key.Key == global::System.ConsoleKey.Escape)
{
demoRunning = false;
}
else if (dialog.HandleKey(key))
{
dialog.Render();
}
}
}
private static void ShowProgressBarDemo()
{
global::System.Console.Clear();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Press ENTER to start, ESC to return"));
statusBar.Render();
var progressBar = new ProgressBar(new Point(15, 10), 50, 100);
progressBar.Value = 0;
var button = new Button(new Rect(35, 13, 15, 3), "Start");
button.OnClick = () =>
{
for (int i = 0; i <= 100; i++)
{
progressBar.SetValue(i);
progressBar.Render();
global::System.Threading.Thread.Sleep(30);
}
};
progressBar.Render();
button.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = global::System.Console.ReadKey(true);
if (key.Key == global::System.ConsoleKey.Escape)
{
demoRunning = false;
}
else if (button.HandleKey(key))
{
button.Render();
}
}
}
private static void ShowTabControlDemo()
{
global::System.Console.Clear();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Use LEFT/RIGHT to switch tabs, ESC to return"));
statusBar.Render();
var tabControl = new TabControl(new Rect(5, 5, 70, 15));
tabControl.Pages.Add(new TabPage(new Rect(5, 8, 70, 11), "Tab 1", () =>
{
TUIHelper.SetColors(global::System.ConsoleColor.Cyan, global::System.ConsoleColor.Black);
global::System.Console.SetCursorPosition(10, 10);
global::System.Console.Write("Tab 1 Content");
TUIHelper.ResetColors();
}));
tabControl.Pages.Add(new TabPage(new Rect(5, 8, 70, 11), "Tab 2", () =>
{
TUIHelper.SetColors(global::System.ConsoleColor.Green, global::System.ConsoleColor.Black);
global::System.Console.SetCursorPosition(10, 10);
global::System.Console.Write("Tab 2 Content");
TUIHelper.ResetColors();
}));
tabControl.Pages.Add(new TabPage(new Rect(5, 8, 70, 11), "Tab 3", () =>
{
TUIHelper.SetColors(global::System.ConsoleColor.Magenta, global::System.ConsoleColor.Black);
global::System.Console.SetCursorPosition(10, 10);
global::System.Console.Write("Tab 3 Content");
TUIHelper.ResetColors();
}));
tabControl.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = global::System.Console.ReadKey(true);
if (key.Key == global::System.ConsoleKey.Escape)
{
demoRunning = false;
}
else if (tabControl.HandleKey(key))
{
tabControl.Render();
}
}
}
private static void ShowMenuDemo()
{
global::System.Console.Clear();
var statusBar = new StatusBar(new Rect(0, 24, 80, 1));
statusBar.Items.Add(new StatusBarItem("Use UP/DOWN to navigate, ENTER to select, ESC to return"));
statusBar.Render();
var menu = new Menu(new Rect(15, 5, 50, 15));
menu.Items.Add(new MenuItem("Option 1: Basic functionality", () =>
{
global::System.Console.SetCursorPosition(15, 21);
global::System.Console.Write("Selected: Option 1");
global::System.Threading.Thread.Sleep(1500);
}));
menu.Items.Add(new MenuItem("Option 2: Advanced features", () =>
{
global::System.Console.SetCursorPosition(15, 21);
global::System.Console.Write("Selected: Option 2");
global::System.Threading.Thread.Sleep(1500);
}));
menu.Items.Add(new MenuItem("Option 3: Settings", () =>
{
global::System.Console.SetCursorPosition(15, 21);
global::System.Console.Write("Selected: Option 3");
global::System.Threading.Thread.Sleep(1500);
}));
menu.Items.Add(new MenuItem("Option 4: Help", () =>
{
global::System.Console.SetCursorPosition(15, 21);
global::System.Console.Write("Selected: Option 4");
global::System.Threading.Thread.Sleep(1500);
}));
menu.Items.Add(new MenuItem("Option 5: About", () =>
{
global::System.Console.SetCursorPosition(15, 21);
global::System.Console.Write("Selected: Option 5");
global::System.Threading.Thread.Sleep(1500);
}));
menu.Items.Add(new MenuItem("Option 6: Exit", () =>
{
global::System.Console.SetCursorPosition(15, 21);
global::System.Console.Write("Selected: Option 6");
global::System.Threading.Thread.Sleep(1500);
}));
menu.Render();
bool demoRunning = true;
while (demoRunning)
{
var key = global::System.Console.ReadKey(true);
if (key.Key == global::System.ConsoleKey.Escape)
{
demoRunning = false;
}
else if (menu.HandleKey(key))
{
menu.Render();
}
}
}
}
}

View File

@@ -1542,6 +1542,11 @@ namespace CMLeonOS
Commands.TestGuiCommand.RunTestGui();
}
public void ProcessTestTUI()
{
Commands.TestTUICommand.RunTestTUI();
}
public void ProcessLabyrinth()
{
Commands.LabyrinthCommand.ProcessLabyrinth();