mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 13:14:21 +01:00
Global: review code
This commit is contained in:
@@ -93,11 +93,11 @@ static void detectWarpTerminal(FFTerminalFontResult* terminalFont)
|
||||
|
||||
void ffDetectTerminalFontPlatform(const FFTerminalResult* terminal, FFTerminalFontResult* terminalFont)
|
||||
{
|
||||
if(ffStrbufIgnCaseCompS(&terminal->processName, "iterm.app") == 0 ||
|
||||
if(ffStrbufIgnCaseEqualS(&terminal->processName, "iterm.app") ||
|
||||
ffStrbufStartsWithIgnCaseS(&terminal->processName, "iTermServer-"))
|
||||
detectIterm2(terminalFont);
|
||||
else if(ffStrbufIgnCaseCompS(&terminal->processName, "Apple_Terminal") == 0)
|
||||
else if(ffStrbufIgnCaseEqualS(&terminal->processName, "Apple_Terminal"))
|
||||
detectAppleTerminal(terminalFont);
|
||||
else if(ffStrbufIgnCaseCompS(&terminal->processName, "WarpTerminal") == 0)
|
||||
else if(ffStrbufIgnCaseEqualS(&terminal->processName, "WarpTerminal"))
|
||||
detectWarpTerminal(terminalFont);
|
||||
}
|
||||
|
||||
@@ -87,9 +87,9 @@ static void detectConEmu(FFTerminalFontResult* terminalFont)
|
||||
|
||||
void ffDetectTerminalFontPlatform(const FFTerminalResult* terminal, FFTerminalFontResult* terminalFont)
|
||||
{
|
||||
if(ffStrbufIgnCaseCompS(&terminal->processName, "mintty") == 0)
|
||||
if(ffStrbufIgnCaseEqualS(&terminal->processName, "mintty"))
|
||||
detectMintty(terminalFont);
|
||||
else if(ffStrbufIgnCaseCompS(&terminal->processName, "conhost.exe") == 0)
|
||||
else if(ffStrbufIgnCaseEqualS(&terminal->processName, "conhost.exe"))
|
||||
detectConhost(terminalFont);
|
||||
else if(ffStrbufStartsWithIgnCaseS(&terminal->processName, "ConEmu"))
|
||||
detectConEmu(terminalFont);
|
||||
|
||||
@@ -15,7 +15,6 @@ typedef struct FFShellResult
|
||||
|
||||
typedef struct FFTerminalResult
|
||||
{
|
||||
|
||||
FFstrbuf processName;
|
||||
FFstrbuf exe;
|
||||
FFstrbuf prettyName;
|
||||
|
||||
Reference in New Issue
Block a user