github tui-lipan/rozi v0.0.6

latest releases: nightly, v0.2.1, v0.2.0...
3 months ago

Gives rozi update the download meter it was missing: the transfer streams behind a progress row
that fits the terminal it is drawn on, reports rate and time remaining once an average means
anything, and leaves the cursor where it found it even under Ctrl+C. Also corrects two Windows
installer reports that named the wrong thing - a launch the operating system blocked was reported
as a failed signature, and the script itself arrived mangled over the wire.

Added

  • rozi update draws a progress meter while it downloads. relswap's downloader returned a
    response body in a single call, so a multi-megabyte archive arrived in silence and the command
    printed nothing until it had finished. relswap 0.0.8 adds UreqDownloader::with_progress,
    which streams the body and reports bytes as they land; rozi supplies the observer that draws
    them. The meter goes to stderr, so redirecting stdout keeps a clean stream, and it is suppressed
    when stderr is not a terminal or NO_COLOR is set.
  • The download row carries a spinner, a transfer rate, and an estimate of the time left. The
    spinner advances per redraw rather than per unit of time, so a stalled transfer visibly stops
    rather than continuing to spin over a bar that is not moving. Rate and estimate are withheld
    until the transfer has run long enough for an average to mean anything, and an estimate is
    dropped once there is nothing left to wait for.
  • The cursor is restored when rozi update is interrupted. Hiding it for the meter was undone on
    every path the program controls, but Ctrl+C terminates without unwinding, so no destructor ran
    and the cursor stayed hidden in the shell until the user typed reset. A SIGINT/SIGQUIT
    handler (and a console control handler on Windows) now restores it and re-raises, so the process
    still dies of the signal it was sent. SIGTERM and SIGHUP are deliberately left to
    server_lifecycle, which owns the clean-detach path.

Changed

  • CLI output and both install scripts now use the rozi palette - the rose-to-violet gradient the
    logo and the app's own theme carry - instead of the basic ANSI colours the CLI had been using.
    Terminals that do not advertise 24-bit colour through COLORTERM get the nearest 256-colour cube
    entry rather than losing the styling.
  • The download row fits the terminal it is drawn on. It was laid out at a fixed width, so a
    narrow terminal wrapped it - and because the erase-line escape only reaches the row the cursor is
    on, every redraw left the previous fragment behind and the meter walked down the screen. The row
    now degrades in tiers against the measured width, dropping the estimate, then the rate, then the
    bar, then the label, and re-measures on every redraw so a mid-download resize re-fits.
  • Progress meters style their filled run and their track separately. Both were previously painted
    in the accent, which made the meter read as one solid shape and hid where the fill actually
    ended. The filled run now carries the brand gradient in a heavy glyph and the track is a light
    glyph in the app's border colour, so the boundary survives NO_COLOR on glyph weight alone. A
    meter also reserves its last cell until the work is genuinely complete, rather than rounding up
    to a full bar at 99%.

Fixed

  • The Windows installer no longer reports Signature failed when Windows refuses to run the
    downloaded payload. Smart App Control and WDAC block unsigned executables that carry no
    established reputation, and $ErrorActionPreference = 'Stop' turned that refusal into a
    terminating error before $LASTEXITCODE could be read - so the exit-code check never ran and
    the raw PowerShell error surfaced under whichever status row happened to be active. The row was
    labelled Signature, which named the one thing that provably had not happened: the Ed25519
    check runs inside the payload, and the payload never started. The probe is now its own Payload
    row, a refused launch is caught on the exception type rather than on Windows' localized message
    text, and the report says the machine's policy blocked execution, notes when Smart App Control
    is enabled, and states that the archive's SHA-256 matched.
  • irm https://rozi.tui-lipan.dev/install.ps1 | iex no longer mangles the installer's output. The
    site served the script with no Content-Type at all, and PowerShell 5.1 decodes a text response
    that declares no charset as ISO-8859-1, so every UTF-8 status glyph arrived as mojibake - the
    script was corrupted in transit before iex parsed it. The two install scripts are now served
    as text/plain; charset=utf-8.

Full Changelog: v0.0.5...v0.0.6

Don't miss a new rozi release

NewReleases is sending notifications on new releases.