Skip to content

3.8.0

Latest
Compare
Choose a tag to compare
@ku1ik ku1ik released this 15 Jun 12:01
· 3 commits to develop since this release

Notable changes:

  • added support for colons in SGR color sequences - fixes (asciinema/avt#9, #154, #231)
  • added support for auto/<theme-name> specification for theme option (see below)
  • added help overlay, triggered by "?" key
  • improved adaptive buffering algorithm in the websocket driver
  • improved rendering of block drawing characters
  • made text of the time display and marker tooltips bigger
  • made the control bar and markers use terminal theme's foreground and background colors
  • added tooltip for the fullscreen button
  • added "type": "module" to package.json to fix import error with some bundlers (thanks @MaddyGuthridge)
  • fixed player element focus behavior when clicking on a marker dot or the playback toggle button

https://www.npmjs.com/package/asciinema-player/v/3.8.0


Recordings made with asciinema CLI 3.0 or later may embed original terminal theme, which is used by the player when available.

Before this release the only way to let the player use the embedded theme automatically was not specifying the theme option when initializing the player. When the theme option was not used, the player favored the embedded theme, falling back to asciinema theme. There was no way to specify "use the original theme when available, fall back to monokai".

This release adds the ability to specify the above wish as { theme: "auto/monokai" }. You can use any built-in theme, e.g. { theme: "auto/dracula" }, and the player will use Dracula theme if the original theme was not captured at the time of recording.

To always use a specific theme regardless of the presence of the original theme in a recording file, use { theme: "<theme-name>" }, e.g. { theme: "dracula" }.

Default value of the theme option (when one not specified) is now auto/asciinema.