Files
fastfetch/src/detection/terminalshell/terminalshell.h
T

33 lines
848 B
C
Raw Normal View History

#pragma once
#include "fastfetch.h"
#include "modules/terminal/option.h"
#include "modules/shell/option.h"
2026-03-29 09:28:49 +08:00
typedef struct FFShellResult {
FFstrbuf processName;
2026-03-29 09:28:49 +08:00
FFstrbuf exe; // Actually arg0 in *nix
const char* exeName; // pointer to a char in exe
FFstrbuf exePath; // Full real path to executable file
FFstrbuf prettyName;
FFstrbuf version;
uint32_t pid;
uint32_t ppid;
2024-01-19 15:42:48 +08:00
int32_t tty;
} FFShellResult;
2026-03-29 09:28:49 +08:00
typedef struct FFTerminalResult {
FFstrbuf processName;
FFstrbuf exe;
FFstrbuf prettyName;
2026-03-29 09:28:49 +08:00
const char* exeName; // pointer to a char in exe
FFstrbuf exePath; // Full real path to executable file
FFstrbuf version;
2024-02-27 16:19:36 +08:00
FFstrbuf tty;
uint32_t pid;
uint32_t ppid;
} FFTerminalResult;
const FFShellResult* ffDetectShell();
const FFTerminalResult* ffDetectTerminal();