Global: rename --disable-stdout-buffer to --unbuffered

This commit is contained in:
李通洲
2022-12-10 13:11:41 +08:00
parent 4558af2e43
commit 72dcc5223d
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
# Sets if fastfetch should disable application buffer of stdout. Mainly for debugging purpose.
# Must be true or false.
# Default is false.
#--disable-stdout-buffer false
#--unbuffered false
# Slow operations option:
# Sets if fastfetch is allowed to use known slow operations to detect more / better values.
+1 -1
View File
@@ -19,7 +19,7 @@ General options:
--load-config <file>: load a config file or a preset (+)
--multithreading <?value>: use multiple threads to detect values
--allow-slow-operations <?value>: allow operations that are usually very slow for more detailed output
--disable-stdout-buffer <?value>: disable stdout application buffer
--unbuffered <?value>: disable stdout application buffer
--escape-bedrock <?value>: on bedrock linux, sets if it should escape the bedrock jail or not
--pipe <?value>: disable logo and all escape sequences
+1 -1
View File
@@ -909,7 +909,7 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con
instance->config.multithreading = optionParseBoolean(value);
else if(strcasecmp(key, "--allow-slow-operations") == 0)
instance->config.allowSlowOperations = optionParseBoolean(value);
else if(strcasecmp(key, "--disable-stdout-buffer") == 0)
else if(strcasecmp(key, "--unbuffered") == 0)
{
if(optionParseBoolean(value))
setvbuf(stdout, NULL, _IONBF, 0);