mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
Prepare flashfetch for images in terminal too
This commit is contained in:
parent
fcc8927917
commit
3248afe91c
@ -10,9 +10,6 @@ int main(int argc, char** argv)
|
||||
|
||||
//Modify instance.config here
|
||||
|
||||
ffLoadLogo(&instance); //ffLoadLogoSet(&instance, "my custom logo");
|
||||
ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]); //Use the primary color of the logo as key color
|
||||
|
||||
//Multithreading --> better performance
|
||||
ffStartDetectionThreads(&instance);
|
||||
|
||||
|
@ -25,12 +25,6 @@ int main(int argc, char** argv)
|
||||
ffInitInstance(&instance);
|
||||
)
|
||||
|
||||
FASTFETCH_TEST_PERFORMANCE(
|
||||
puts("Configuration");
|
||||
ffLoadLogo(&instance);
|
||||
)
|
||||
|
||||
ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]);
|
||||
instance.config.showErrors = true;
|
||||
instance.config.recache = argc == 1;
|
||||
instance.config.cacheSave = false;
|
||||
@ -41,6 +35,11 @@ int main(int argc, char** argv)
|
||||
ffStartDetectionThreads(&instance);
|
||||
)
|
||||
|
||||
FASTFETCH_TEST_PERFORMANCE(
|
||||
puts("Starting");
|
||||
ffStart(&instance);
|
||||
)
|
||||
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintTitle(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintSeparator(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintOS(&instance))
|
||||
@ -74,5 +73,10 @@ int main(int argc, char** argv)
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintBreak(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintColors(&instance))
|
||||
|
||||
FASTFETCH_TEST_PERFORMANCE(
|
||||
puts("Finishing");
|
||||
ffFinish(&instance);
|
||||
)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user