mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 12:14:19 +01:00
kernel options
This commit is contained in:
@@ -3,5 +3,13 @@
|
||||
void ffPrintKernel(FFinstance* instance)
|
||||
{
|
||||
ffPrintLogoAndKey(instance, "Kernel");
|
||||
puts(instance->state.utsname.release);
|
||||
|
||||
if(instance->config.kernelShowRelease && instance->config.kernelShowVersion)
|
||||
printf("%s %s\n", instance->state.utsname.release, instance->state.utsname.version);
|
||||
else if(instance->config.kernelShowRelease)
|
||||
puts(instance->state.utsname.release);
|
||||
else if(instance->config.kernelShowVersion)
|
||||
puts(instance->state.utsname.version);
|
||||
else
|
||||
puts(instance->state.utsname.sysname);
|
||||
}
|
||||
Reference in New Issue
Block a user