diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 0733c64c0..1cd9ca862 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -35,7 +35,7 @@ jobs: uses: github/codeql-action/analyze@v2 - name: run fastfetch - run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --disable-stdout-buffer + run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --unbuffered - name: run flashfetch run: ./flashfetch @@ -81,7 +81,7 @@ jobs: uses: github/codeql-action/analyze@v2 - name: run fastfetch - run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --disable-stdout-buffer + run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --unbuffered - name: run flashfetch run: ./flashfetch @@ -113,7 +113,7 @@ jobs: run: | cmake -DSET_TWEAK=Off -DBUILD_TESTS=On . cmake --build . --target package - ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --disable-stdout-buffer + ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --unbuffered ./flashfetch ctest @@ -180,7 +180,7 @@ jobs: run: cp /clang64/bin/{libcjson,libOpenCL,vulkan-1}.dll . - name: run fastfetch - run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --disable-stdout-buffer + run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true --load-config presets/all --unbuffered - name: run flashfetch run: ./flashfetch diff --git a/completions/bash b/completions/bash index 6b6e4e574..7de2b3edf 100644 --- a/completions/bash +++ b/completions/bash @@ -175,7 +175,7 @@ __fastfetch_completion() "--logo-print-remaining" "--multithreading" "--allow-slow-operations" - "--disable-stdout-buffer" + "--unbuffered" "--disable-linewrap" "--hide-cursor" "--cpu-temp" diff --git a/src/data/config_user.txt b/src/data/config_user.txt index a2430cff9..0b354c5a1 100644 --- a/src/data/config_user.txt +++ b/src/data/config_user.txt @@ -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. diff --git a/src/data/help.txt b/src/data/help.txt index 948f88dcc..1cebf5748 100644 --- a/src/data/help.txt +++ b/src/data/help.txt @@ -19,7 +19,7 @@ General options: --load-config : load a config file or a preset (+) --multithreading : use multiple threads to detect values --allow-slow-operations : allow operations that are usually very slow for more detailed output - --disable-stdout-buffer : disable stdout application buffer + --unbuffered : disable stdout application buffer --escape-bedrock : on bedrock linux, sets if it should escape the bedrock jail or not --pipe : disable logo and all escape sequences diff --git a/src/fastfetch.c b/src/fastfetch.c index 356b94b88..ffbc964a9 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -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);