李通洲
aa0bbd5aee
Percent: add option --percent-width
2025-07-30 15:06:16 +08:00
李通洲
a0174e8666
Global: add new unit related options
...
1. `--<module>-space-before-unit`
2. `--duration-abbreviation`
3. various code refactoring and cleanups
2025-07-30 15:03:23 +08:00
李通洲
a3182c31cb
Chore: add FF_C_NONNULL
2025-07-28 15:35:02 +08:00
李通洲
02c3254961
Netif (Windows): correct default route detection (v2)
2025-07-24 19:31:41 +08:00
李通洲
ccbb9e90ea
Netif (Windows): fix default route detection when the default adapter is disabled
...
This commit addresses an issue where the default route detection on Windows incorrectly identified a disabled adapter as the default route. Previously, when a user disabled the adapter configured as the default route, the system still reported it as active due to stale routing table entries.
2025-07-21 20:24:43 +08:00
李通洲
6c56348e54
JsonConfig: add modules[n].condition to run modules conditionally on different platforms
2025-07-18 15:45:25 +08:00
李通洲
8c6dc34654
Processing (*nix): fix compiling on Android 7
2025-07-18 13:27:17 +08:00
李通洲
cf2034b93e
Processing (Windows): redirect unused std handles to NUL to avoid potential errors
2025-07-18 10:39:11 +08:00
李通洲
f7db03b8c4
Processing (*nix): use traditional fork-exec on Android and OpenBSD
...
Fix https://github.com/termux/termux-packages/issues/25369
2025-07-18 10:37:52 +08:00
Carter Li
1ac1f1f889
Chore: silense compiler warnings
2025-07-16 15:19:48 +08:00
李通洲
468d1e0903
Display: add option --fraction-ndigits
...
to control number of digits to print when formatting ordinary fraction numbers
2025-07-16 10:33:20 +08:00
李通洲
6851e7b082
Uptime / Users: add years, days-of-year and year-fraction
...
Like what `Disk` has
2025-07-16 09:53:09 +08:00
李通洲
6f3ed4a7b4
Processing (Linux): cache the index of $LANG
2025-07-15 10:22:56 +08:00
Carter Li
2eda6464ad
Processing (Linux): use posix_spawnp for better performance
2025-07-09 23:56:02 +08:00
Carter Li
2622fc12a6
Chore (Linux): silence compiler warnings
2025-07-09 20:23:28 +08:00
Dariqq
821462e152
Chore: Add a missing semicolon ( #1828 )
...
Followup to a9f021ccb9
2025-07-03 20:16:14 -05:00
李通洲
98738b6920
CPUUsage (Windows): detect perflib support dynamically based on OS version
2025-07-02 19:40:22 +08:00
李通洲
18a6929662
CPUUsage (Windows): disable ENABLE_CPUUSAGE_PERFLIB by default
...
Because Windows 7 doesn't support it
2025-07-01 22:08:08 +08:00
李通洲
40e57b7698
IO: increase PROC_FILE_BUFFSIZ to avoid possible short reads
2025-06-30 19:16:08 +08:00
Carter Li
92fe44183d
Shell (SunOS): ignore leading -
2025-06-22 12:12:49 +08:00
apocelipes
3291a9945f
Global: add missing O_CLOEXEC to open()
2025-06-19 22:40:06 +08:00
李通洲
c2ed71c4eb
Global: set SetErrorMode(SEM_FAILCRITICALERRORS) globally
...
Fix #1805
2025-06-15 00:00:22 +08:00
李通洲
9a54d92e9f
Stat: use ESC 7/8 instead of CSI s/u
...
Fix Apple Terminal compatibility #1755
2025-05-16 10:33:58 +08:00
李通洲
5c546ab8e7
Parsing: silence compiler warnings
2025-04-30 14:14:28 +08:00
李通洲
5d960ec744
Uptime: fix non-normalized time being shown
...
Fix #1720
2025-04-29 10:22:19 +08:00
李通洲
c1f6a2f755
Refactor: inline printError into ffPrintError and remove unused static helper
2025-04-22 14:30:39 +08:00
李通洲
29eaa35f4c
Color: support #RGB and #RRGGBB
...
Fix #1694
2025-04-17 10:48:18 +08:00
李通洲
894c66d793
Processing (Windows): fix macro name __aarch64__
...
Found by AI
2025-04-16 11:12:36 +08:00
李通洲
a51dd641c1
Processing (Windows): use GetOverlappedResultEx on WoA
2025-04-15 16:41:38 +08:00
李通洲
9cda7e20fb
Chore: simplify fastfetch.h
2025-04-14 10:28:01 +08:00
李通洲
3c3188eb05
IO (Windows): support ~ expanding
2025-04-07 16:43:48 +08:00
李通洲
6bbed12083
IO: remove fast path of ffPathExists, which causes too many problems
...
Fix #1662
2025-04-03 22:38:05 +08:00
李通洲
52fdabeb2e
Uptime: round seconds to the nearest minute
...
To match the behavior of `uptime` command
2025-04-01 19:40:15 +08:00
李通洲
ac2aba0faf
Threading: fix timeout calcuation
2025-04-01 11:07:28 +08:00
李通洲
d0ca944b9c
Netif (Linux): support default route detection for ipv6
2025-04-01 10:48:30 +08:00
李通洲
6dd18050be
IO: don't suppress IO in debug mode
2025-03-23 21:56:32 +08:00
李通洲
f9f628eae6
Networking: request HTTP/1.0, as we don't support chunked response
...
Fix #1629
2025-03-20 23:08:41 +08:00
李通洲
e18c261054
Networking (FreeBSD): support fast path without TFO enabled
2025-03-18 14:18:53 +08:00
Carter Li
8851821484
Networking: don't enable TFO if server doesn't support it
2025-03-18 10:53:02 +08:00
Carter Li
3489cc8fe8
Networking: don't enable HTTP compression if server doesn't support it
2025-03-18 10:19:32 +08:00
Carter Li
28bc97b92b
Networking (Linux): remove unnecessary variables
2025-03-18 09:51:11 +08:00
李通洲
dbc5a7961e
Networking (Linux): don't generate SIGPIPE
2025-03-17 23:13:44 +08:00
李通洲
5f43f63990
Networking (Windows): more verbose log
2025-03-17 22:54:47 +08:00
李通洲
b775fe7486
Networking (macOS): support TFO
2025-03-17 15:59:39 +08:00
李通洲
60eaa326a2
Networking (BSD): support TCP_FASTOPEN
2025-03-17 09:07:30 +08:00
李通洲
96e9e61437
Networking (Windows): print readable error message
2025-03-16 10:38:04 +08:00
李通洲
dbc6f70f19
Networking (Windows): fix libz loading; use TCP_FASTOPEN if available
2025-03-16 10:09:33 +08:00
Carter Li
dfc9bc265c
Networking: silence compiler warnings
2025-03-16 09:51:50 +08:00
Carter Li
2ce511c4d3
Networking (Linux): handle a case when sendto() reports EINPROGRESS
2025-03-16 09:40:12 +08:00
李通洲
99415a3841
Networking: move files to a sub folder
2025-03-15 23:47:02 +08:00