github unkn0wn-root/resterm v0.21.1

latest releases: v0.39.5, v0.39.4, v0.39.3...
3 months ago

What's New

Response rendering has been completely rewritten. The old implementation was too slow. For small responses you'd never notice, but on larger payloads it added up and you would probably see something like "Reflowing response" longer than necessary.

The new approach streams content directly into a buffer and takes a shortcut for plain ASCII text by skipping the expensive character width calculations that are only needed for unicode and wide characters. The result is much much quicker response wrapping and noticeably snappier rendering when you're dealing with big responses. You should notice big performance improvements right away.

Bug Fixes

  • There was a subtle bug where certain color sequences would get lost when text wrapped to a new line. Specifically, sequences like ESC[0;31m (which means "reset styling, then set red") were being misread as just a reset, so the red would disappear on continuation lines. This affected 256-color and truecolor sequences too. If you've ever seen colors randomly drop out in wrapped output, that's what was happening. It's fixed now - styles correctly carry over across line breaks.

  • When displaying preformatted content (like raw response bodies), wrapped lines would sometimes end up with just the leading indentation and nothing else - a blank-looking line that pushed the actual content down. The wrapper now fills the available space before breaking to a new line, so you won't see those awkward empty lines anymore.

Don't miss a new resterm release

NewReleases is sending notifications on new releases.