Commit Graph
598 Commits
Author SHA1 Message Date
Andrew Wood cb71277df4 Allocate more space for the display buffer, as wide characters take up more room. 2024-12-13 20:38:45 +00:00
Andrew Wood 9f5923864b Inhibit UTF-8 based bar formats when UTF-8 output support is not detected, falling back to the default format instead. 2024-12-13 20:17:01 +00:00
Andrew Wood 60563f3e3c New bar formats - default, block, granular, shaded - with the granular format providing a smoother bar using Unicode block characters (#15) 2024-12-13 20:02:36 +00:00
Andrew Wood c49abf1608 Indentation updates. 2024-12-13 19:57:18 +00:00
Andrew Wood 250a794873 Add globs to the indent, indentclean, and clean-local targets. 2024-12-13 19:46:31 +00:00
Andrew Wood 78f4a60bf7 Change the formatter functions to take their 6 arguments as one struct pointer, making it less messy. 2024-12-12 22:36:07 +00:00
Andrew Wood 2a93e33d38 Add a rate-limiting example. 2024-12-11 21:40:08 +00:00
Andrew Wood 5efd4d045f Adjust the way the leading space is formatted, to better translate to Markdown. 2024-12-10 23:10:57 +00:00
Andrew Wood 0516ba53bd Remove the example with "dialog" and add a more usual use case with tar. 2024-12-10 23:08:00 +00:00
Andrew Wood 1d76c0bc64 Permit decimals with suffix for --size, --rate-limit, --buffer-size, and --error-skip-block (#35); and document the types of numbers allowed in the manual. 2024-12-10 22:09:32 +00:00
Andrew Wood 73bc1ab139 Classify --watchfd and --remote as "alternative operating modes" rather than "data transfer modifiers" since they change the way PV runs entirely. 2024-12-10 21:05:59 +00:00
Andrew Wood 35fdb331e4 Add a leading space to the exit status codes, for readability. 2024-12-10 21:01:38 +00:00
Andrew Wood 9ceda2059d Set the indent so that the exit status items do not waste a line each. 2024-12-10 20:59:04 +00:00
Andrew Wood 0e24c9f453 Use long options in examples where it makes sense to do so, for readability. 2024-12-10 20:56:25 +00:00
Andrew Wood ad54067b48 Note that --watchfd works on macOS as well as Linux, and correct the capitalisation of macOS elsewhere. 2024-12-10 20:50:53 +00:00
Andrew Wood e99a58b430 Remove the SY macros from the manual since they are not universally supported, and replace the technically correct and complete, but user-hostile, synopsis with a simplified version that lists the main modes of operation. 2024-12-10 20:44:43 +00:00
Andrew Wood 51a5de71c1 Add a "can_display_utf8" flag based on the current locale, for future use. 2024-12-09 23:23:07 +00:00
Andrew Wood 06eca8cefa Renamed for consistency - pv__ for static functions, and name the array an array. 2024-12-09 21:52:25 +00:00
Andrew Wood a4494159ea Positions update after moving the formatter functions. 2024-12-09 21:46:00 +00:00
Andrew Wood c95e25776e Move the formatter functions into separate files so that display.c is less of a monolith; and replace the ctype.h macros with internal versions. 2024-12-09 21:42:16 +00:00
Andrew Wood c2a5be6aa9 Allow SKIP_VALGRIND_TESTS to be passed through to package building. v1.9.15 2024-12-08 23:15:31 +00:00
Andrew Wood 135eb71a75 Make the issues into links. 2024-12-08 23:13:29 +00:00
Andrew Wood af99120067 Timestamp update. 2024-12-08 22:22:22 +00:00
Andrew Wood 2d28520ae4 Version bump. 2024-12-08 22:21:45 +00:00
Andrew Wood 35d5b9efab Handle wide characters and ECMA-48 CSI sequences in the format string when calculating string widths. 2024-12-08 21:38:38 +00:00
Andrew Wood f495303177 List all supported format sequences in the output of "--help". 2024-12-08 20:40:05 +00:00
Andrew Wood fb2e6b4074 New "--format" sequences "{progress-bar-only}" and "{progress-amount-only}". 2024-12-08 20:13:33 +00:00
Andrew Wood 4ffdee0002 Introduce the pv_strwidth() function so that in future we can add support for escape sequences and UTF-8 in format strings. 2024-12-08 17:40:12 +00:00
Andrew Wood 5c5d53e1d1 Address two splint-related TODOs. 2024-12-08 17:31:59 +00:00
Andrew Wood 269d2f5729 Correction to "make indentclean". 2024-12-08 17:27:06 +00:00
Andrew Wood 57149c2d03 Add long names to format sequences, such as "%{rate}". 2024-12-08 17:16:02 +00:00
Andrew Wood 838ebcb78f Improve the handling of dangling or invalid "%" sequences. 2024-12-08 16:18:58 +00:00
Andrew Wood 6298a7be9d Refactor the display formatters into their own functions, remove the static arrays for component contents, and start tracking the displayed width of each segment separately from the length in bytes. 2024-12-08 16:04:00 +00:00
Andrew Wood cfea00b200 Use standalone flags to indicate whether we are tracking the last bytes output or the previous line written, so that the component array is not needed outside of display.c. 2024-12-08 10:23:24 +00:00
Andrew Wood 3d52919411 Remove the caveat about only specifying "%p" once, as it can now be used more than once. 2024-12-07 23:26:12 +00:00
Andrew Wood 52ea1b5ba2 Acknowledge %nL (#121). 2024-12-07 23:24:51 +00:00
Andrew Wood 619a84949f New format sequence "%nL" to display the most recently written line (#121). 2024-12-07 23:12:41 +00:00
Andrew Wood c3648af57f Handle the progress bar appearing more than once in the format string. 2024-12-07 20:23:20 +00:00
Andrew Wood 53b5ea54c6 Track the chosen size of format segments so that "%nA" can appear more than once, with different "n" values (#122). 2024-12-07 19:39:44 +00:00
Andrew Wood c4c7b9ec00 Refer to "bytes" rather than "length", so that in future we can differentiate between the number of bytes in a string and how many display columns it occupies. 2024-12-07 17:17:59 +00:00
Andrew Wood b428e7613d Revert back to one test at a time, make it tunable. 2024-12-07 16:39:12 +00:00
Andrew Wood 0e9534c10e Correct how the permissions are set, now that subdirectories are present. 2024-12-07 16:20:48 +00:00
Andrew Wood 7f8aa3f985 Timestamp update. 2024-12-07 14:31:54 +00:00
Andrew Wood 238e07e7d7 Add a section to generate OS packages containing the compiled program. 2024-12-07 14:30:27 +00:00
Andrew Wood b6462ad865 Correction for compatibility with Debian 11. 2024-12-07 14:27:38 +00:00
Andrew Wood 2d7d854a97 Allow all tests to be skipped if SKIP_ALL_TESTS is 1. 2024-12-07 14:23:03 +00:00
Andrew Wood 0626737a15 Pass "-j4" to "make" during the checks. 2024-12-07 13:34:36 +00:00
Andrew Wood 17a1c9d639 Keep the exit trap. 2024-12-07 02:29:48 +00:00
Andrew Wood 31ea20dbd3 New script to help with the release process. 2024-12-07 02:20:30 +00:00
Andrew Wood 97c48c8901 Allow valgrind tests to be skipped with an environment variable. 2024-12-07 02:20:04 +00:00