From 728759d38e882a7a9dfd81824f134b59820a178e Mon Sep 17 00:00:00 2001 From: Evo112358 Date: Mon, 12 Sep 2022 15:51:53 +1000 Subject: [PATCH 1/2] pull request to implement enhancement referenced in issue 223. --- src/modules/terminal.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules/terminal.c b/src/modules/terminal.c index 7942f266b..4d930a445 100644 --- a/src/modules/terminal.c +++ b/src/modules/terminal.c @@ -5,7 +5,7 @@ #include #define FF_TERMINAL_MODULE_NAME "Terminal" -#define FF_TERMINAL_NUM_FORMAT_ARGS 3 +#define FF_TERMINAL_NUM_FORMAT_ARGS 10 void ffPrintTerminal(FFinstance* instance) { @@ -31,7 +31,14 @@ void ffPrintTerminal(FFinstance* instance) ffPrintFormat(instance, FF_TERMINAL_MODULE_NAME, 0, &instance->config.terminal, FF_TERMINAL_NUM_FORMAT_ARGS, (FFformatarg[]){ {FF_FORMAT_ARG_TYPE_STRBUF, &result->terminalProcessName}, {FF_FORMAT_ARG_TYPE_STRBUF, &result->terminalExe}, - {FF_FORMAT_ARG_TYPE_STRING, result->terminalExeName} + {FF_FORMAT_ARG_TYPE_STRING, result->terminalExeName}, + {FF_FORMAT_ARG_TYPE_STRBUF, &result->shellProcessName}, + {FF_FORMAT_ARG_TYPE_STRBUF, &result->shellExe}, + {FF_FORMAT_ARG_TYPE_STRING, result->shellExeName}, + {FF_FORMAT_ARG_TYPE_STRBUF, &result->shellVersion}, + {FF_FORMAT_ARG_TYPE_STRBUF, &result->userShellExe}, + {FF_FORMAT_ARG_TYPE_STRING, result->userShellExeName}, + {FF_FORMAT_ARG_TYPE_STRBUF, &result->userShellVersion} }); } } From 9ea5de5efcf6c9be2b3de97260a38e033a736e3b Mon Sep 17 00:00:00 2001 From: Evo112358 Date: Mon, 12 Sep 2022 15:57:05 +1000 Subject: [PATCH 2/2] updated --help terminal-format --- src/fastfetch.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/fastfetch.c b/src/fastfetch.c index 9f2691148..6b674f321 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -230,10 +230,17 @@ static inline void printCommandHelp(const char* command) } else if(strcasecmp(command, "terminal-format") == 0) { - constructAndPrintCommandHelpFormat("terminal", "{3}", 3, + constructAndPrintCommandHelpFormat("terminal", "{3}", 10, "Terminal process name", "Terminal path with exe name", - "Terminal exe name" + "Terminal exe name", + "Shell process name", + "Shell path with exe name", + "Shell exe name", + "Shell version", + "User shell path with exe name", + "User shell exe name", + "User shell version" ); } else if(strcasecmp(command, "terminal-font-format") == 0)