aboutsummaryrefslogtreecommitdiff
path: root/lib/std/progress.zig
AgeCommit message (Collapse)Author
2020-05-24(breaking) std.time fixups and API changesAndrew Kelley
Remove the constants that assume a base unit in favor of explicit x_per_y constants. nanosecond calendar timestamps now use i128 for the type. This affects fs.File.Stat, std.time.nanoTimestamp, and fs.File.updateTimes. calendar timestamps are now signed, because the value can be less than the epoch (the user can set their computer time to whatever they wish). implement std.os.clock_gettime for Windows when clock id is CLOCK_CALENDAR.
2020-05-01std.progress: handle error from FillConsoleOutputAttributeAndrew Kelley
I observed this returning an error. Fall back to not doing terminal stuff if an error occurs here. See #5244
2020-04-29Add unreachable branchAlexandros Naskos
2020-04-29Progress will now use ANSI escape codes on windows for terminals that support itAlexandros Naskos
2020-04-22std: Implement progress for WindowsLemonBoy
Use the Win32 API instead of using the VT escape sequences.
2020-03-13fix all the TODOs from the pull requestAndrew Kelley
* `std.Buffer.print` is removed; use `buffer.outStream().print` * `std.fmt.count` returns a `u64` * `std.Fifo.print` is removed; use `fifo.outStream().print` * `std.fmt.bufPrint` error is renamed from `BufferTooSmall` to `NoSpaceLeft` to match `std.os.write`. * `std.io.FixedBufferStream.getWritten` returns mutable buffer if the buffer is mutable.
2020-03-10(breaking) improve and simplify fixed buffer streams APIAndrew Kelley
2019-12-08std.fmt.format: tuple parameter instead of var argsAndrew Kelley
2019-11-13std.io.getStdOut and related fns no longer can errorAndrew Kelley
Thanks to the Windows Process Environment Block, it is possible to obtain handles to the standard input, output, and error streams without possibility of failure.
2019-10-21adjust test runner to print the test name when error occursAndrew Kelley
2019-10-17improve progress reportingAndrew Kelley
* use erase rest of line escape code. * use `stderr.supportsAnsiEscapeCodes` rather than `isTty`. * respect `--color off` * avoid unnecessary recursion * add `Progress.log` * disable the progress std lib test since it's noisy and uses `time.sleep()`. * enable/integrate progress printing with the default test runner
2019-10-17rework the progress module and integrate with stage1Andrew Kelley
2019-10-17add lib/std/progress.zigLuna