TerminalShell: add support for Windows

This commit is contained in:
李通洲
2022-10-08 16:04:55 +08:00
parent 8246c6e61d
commit 09a2f96cf0
15 changed files with 249 additions and 27 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#include "fastfetch.h"
#include "common/printing.h"
#include "detection/terminalshell.h"
#include "detection/terminalshell/terminalshell.h"
#define FF_SHELL_MODULE_NAME "Shell"
#define FF_SHELL_NUM_FORMAT_ARGS 7
@@ -18,7 +18,7 @@ void ffPrintShell(FFinstance* instance)
if(instance->config.shell.outputFormat.length == 0)
{
ffPrintLogoAndKey(instance, FF_SHELL_MODULE_NAME, 0, &instance->config.shell.key);
fputs(result->shellExeName, stdout);
ffStrbufWriteTo(&result->shellProcessName, stdout);
if(result->shellVersion.length > 0)
{