mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 06:00:08 +01:00
Networking (Linux): improve performance by TFO and response compression
This commit is contained in:
@@ -317,6 +317,10 @@ bool ffOptionsParseDisplayCommandLine(FFOptionsDisplay* options, const char* key
|
||||
options->pipe = ffOptionParseBoolean(value);
|
||||
else if(ffStrEqualsIgnCase(key, "--show-errors"))
|
||||
options->showErrors = ffOptionParseBoolean(value);
|
||||
#ifndef NDEBUG
|
||||
else if(ffStrEqualsIgnCase(key, "--debug"))
|
||||
options->debugMode = ffOptionParseBoolean(value);
|
||||
#endif
|
||||
else if(ffStrEqualsIgnCase(key, "--disable-linewrap"))
|
||||
options->disableLinewrap = ffOptionParseBoolean(value);
|
||||
else if(ffStrEqualsIgnCase(key, "--hide-cursor"))
|
||||
@@ -505,6 +509,7 @@ void ffOptionsInitDisplay(FFOptionsDisplay* options)
|
||||
options->disableLinewrap = !options->pipe;
|
||||
#else
|
||||
options->disableLinewrap = false;
|
||||
options->debugMode = false;
|
||||
#endif
|
||||
|
||||
options->hideCursor = false;
|
||||
|
||||
@@ -32,6 +32,9 @@ typedef struct FFOptionsDisplay
|
||||
int32_t stat; // <0: disable stat; 0: no threshold; >0: threshold in ms
|
||||
bool pipe; //disables all escape sequences
|
||||
bool showErrors;
|
||||
#ifndef NDEBUG
|
||||
bool debugMode;
|
||||
#endif
|
||||
bool disableLinewrap;
|
||||
bool hideCursor;
|
||||
FFSizeBinaryPrefixType sizeBinaryPrefix;
|
||||
|
||||
Reference in New Issue
Block a user