TerminalShell: add support for Windows

This commit is contained in:
李通洲 committed 2022-10-09 15:37:14 +08:00
1 parent 8246c6e61d
commit 09a2f96cf0
15 files changed
+249 -27

No files matched your search

+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)
{