diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-21 21:34:05 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-21 21:34:05 +0900 |
commit | 0556b433bf6f58d837dae4b74ddea25260ca64c8 (patch) | |
tree | c5fe19242fe0c4d70484dbdd159ef9faaefbc852 /main.c | |
parent | 1b4a5a6bc4712468b4b5bfedc584f0e03728fe11 (diff) |
シェル情報の追加
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -15,6 +15,7 @@ #include "src/packages.h" #include "src/resolution.h" #include "src/wm.h" +#include "src/shell.h" #include "src/cpu.h" #include "src/gpu.h" #include "src/memory.h" @@ -200,6 +201,14 @@ int main(int argc, char *argv[]) { lc++; } + const char *shell = display_shell(); + if (shell) { + printf("%s ", LOGO[lc]); + printf("%sShell%s: %s\n", color, reset, shell); + free((void *)shell); + lc++; + } + const char *cpu = display_cpu(); if (cpu) { printf("%s ", LOGO[lc]); @@ -228,7 +237,6 @@ int main(int argc, char *argv[]) { // TODO: // * libc - // * シェル // * 端末 // * ストレージ |