李通洲
7145f5252d
TerminalShell: add --shell-version and --terminal-version options to disable shell / terminal version detection
...
in case that users don't like it
2023-01-11 17:17:17 +08:00
李通洲
94a8e0339e
Windows: remove outdated comments
2023-01-11 13:51:47 +08:00
李通洲
7f97725d7f
Disk: add --disk-show-unknown option
...
Ref: https://github.com/LinusDierheimer/fastfetch/issues/383#issuecomment-1376893128
2023-01-10 17:31:47 +08:00
李通洲
d9a022ffff
Brightness: add new module (macOS)
...
It turns out that merging brightness module into resolution module is a bad idea.
2023-01-09 22:26:56 +08:00
Aaron Franke
5cc17bc306
Add support for displaying the ISA string on RISC-V CPUs
2023-01-09 02:21:26 -06:00
李通洲
4daf3016f8
Global: fix memleaks
2023-01-09 10:02:48 +08:00
Linus Dierheimer
b1c0a2dc1e
Better init of config & data dirs
2023-01-08 11:32:43 +01:00
Linus Dierheimer
2a092de8d8
Detect data dirs at runtime
...
* Respecting the current platform
* Using them where appropiate
2023-01-08 01:41:09 +01:00
Linus Dierheimer
bb57714ac9
Use configDirs to look for fastfetch configs
2023-01-07 22:51:47 +01:00
李通洲
3e2c344417
Android: honor $XDG_CONFIG_HOME when loading user config file
2023-01-08 01:27:34 +08:00
李通洲
f3db4e49b6
Windows: store config file in RoamingAppData instead of LocalAppData
2023-01-03 17:01:24 +08:00
李通洲
30f9bcbd22
TerminalFont: fix mintty terminal font detection
2023-01-03 17:01:24 +08:00
李通洲
3caa92c567
macOS: looking for config files in ~/Library/Preferences
2023-01-02 16:34:57 +08:00
李通洲
822496808d
Windows: look for config files in $LOCALAPPDATA
2023-01-02 16:34:57 +08:00
李通洲
39d8ebc3c9
Logo: support --logo-padding-top
2023-01-01 17:37:11 +08:00
李通洲
1dabac9782
Media: remove the alias name Song to avoid confusion
...
So we don't have code like `#define FF_SONG_MODULE_NAME "Media"`.
Also fix the error `unknown option: --media-format`
2022-12-30 11:21:11 +08:00
李通洲
90359d227e
Global: don't require sysinfo.h globally
...
... which is Linux specific
2022-12-28 17:20:20 +08:00
李通洲
cb48c1277a
Chassis: seperate module
...
It's only supported on Linux
2022-12-24 23:00:38 +08:00
李通洲
89347b7bee
Image: add dirty support of iTerm image protocol
...
iTerm image protocol supports most commonly used image formats so we don't need image magick to convert image format.
However, since we don't know anything about the image, `--logo-width` `--logo-height` must be specified to make sure that logo will not be covered by texts.
2022-12-22 21:37:16 +08:00
李通洲
c45ef08926
Image: expose more chafa settings
2022-12-22 11:36:13 +08:00
李通洲
f50b478966
Image: try fixing caching
2022-12-22 02:40:56 +08:00
李通洲
0cacedfc5d
Image: enable Chafa on Windows
...
It's not built by default, as imagemagick requires too many dlls.
2022-12-22 02:07:57 +08:00
Carter Li
a95eb65faa
Merge pull request #352 from CarterLi/dev
...
Global: remove caching functions except image caching
2022-12-21 19:29:55 +08:00
李通洲
225d1dd4d2
Init: don't try to find config files in XDG folders on platforms other than Linux and BSD
2022-12-20 23:29:23 +08:00
李通洲
ff6e982050
Global: remove caching except image caching
2022-12-17 12:41:11 +08:00
李通洲
eeb008f505
Global: replace all ".so" to FF_LIBRARY_EXTENSION
...
... no matter whether the libraries are linux specific or not
2022-12-17 12:22:11 +08:00
李通洲
e4a5194115
Rework stdout buffering on Windows.
...
Windows doesn't support line-buffering. We enable full-buffering instead and flush buffers per module.
2022-12-14 16:27:04 +08:00
李通洲
d151901049
Common: improve resolution of ffTimeGetTick
2022-12-14 15:43:53 +08:00
李通洲
b09aa3240a
Global: support --stat option for benchmark
2022-12-14 11:30:50 +08:00
李通洲
68b98c1bd2
Windows: disable stdout buffer
2022-12-10 22:47:53 +08:00
李通洲
b4e2997389
Tests: don't include fastfetch.h
2022-12-08 18:29:24 +08:00
李通洲
57b794cbd9
macOS: fix build
2022-11-28 16:29:51 +08:00
李通洲
db33d246cb
common/io: improve performance for large files
2022-11-28 01:57:45 +08:00
李通洲
5e5442426c
Wifi: load wlanapi.dll dynamically
...
Windows Server doesn't support it
2022-11-27 16:22:30 +08:00
李通洲
a55add190c
Wifi: add new module
...
Only Windows is supported currently
2022-11-27 12:21:53 +08:00
李通洲
b6b95581cd
Windows: partially revert a5306d60ee to fix crashes on Windows 7
...
Very strange behavior. Needs further investigation
2022-11-20 02:18:06 +08:00
李通洲
2a34978487
Thread: silence compiler warnings
2022-11-17 22:36:49 +08:00
李通洲
e8e586ce7c
Windows / macOS: simplify code
...
1. simplify resource management by using C++ RAII like GCC attribute extension `cleanup`
2. simplify HEKY reading
Actually `__attribute__((__cleanup__(cleanupFn)))` is supported on all major C compiler ( gcc, clang and icc ) except MSVC I only used it on Windows and macOS for now. Let's see if the project author like it.
2022-11-17 19:54:36 +08:00
李通洲
0bbecb3b33
Thread: silence compiler warnings
2022-11-17 00:13:25 +08:00
李通洲
a5306d60ee
Windows: enable console processing, disable output buffer
...
UCRT doesn't support line buffering, which makes modules being not printed ASAP
2022-11-15 14:50:57 +08:00
李通洲
9da7bb3f30
Networking: support nowait connection (Posix)
...
Thread was used for now.
It's possible to do nonblocking connect & send with io_uring on Linux, but it requires newer kernel and linking to liburing. I don't think it is worth the effort.
2022-11-03 20:25:09 +08:00
李通洲
46ebb52afa
Thread: split ffThreadCreateAndDetach; add ffThreadJoin
2022-11-03 20:25:09 +08:00
李通洲
4f97692245
Networking: support nowait connection (Windows)
2022-11-03 20:25:09 +08:00
Linus Dierheimer
45f8b86f13
Don't segfault if 0 is given as argument index
...
#326
2022-11-01 14:54:27 +01:00
李通洲
895d151e2e
Host: support freebsd
2022-10-27 11:15:53 +08:00
李通洲
e59d64513f
Silence warnings
2022-10-23 17:54:19 +08:00
李通洲
ed85b8249a
Init: enable buffering on Windows
2022-10-23 17:54:02 +08:00
李通洲
62ab091350
Printing: improve performace of ffPrintCharTimes
2022-10-23 10:46:09 +08:00
李通洲
0aac358e33
Init: simplify module arg parsing code
2022-10-23 10:08:02 +08:00
李通洲
e13c88cea6
Global: support bar output for percentage value #294
2022-10-22 16:15:12 +08:00