dist/bundle/asciinema-player.css - stylesheet, to be linked directly from a website or included in a CSS bundle.dist/bundle/ - minimized version of the above.dist/bundle/asciinema-player.js - standalone player script, to be linked directly from a website.dist/index.js - ES module, to be import-ed in your JS bundle.90%ĭevelopment and build related tasks so make sure you have the latest versions ← / → - rewind 5 seconds / fast-forward 5 seconds.The following keyboard shortcuts are currently available (when the player This option is effective only when fit: false option is specified as well If you're upgrading from v2 to v3 and want to preserve the sizingīehaviour then include fit: false option. Version 2.x of the player supported only the behaviour represented by theįalse value. false / "none" - don't scale, use fixed size font (also see fontSize option below)."both" - scale to either full width or height, maximizing usage of available space (requires the container element to have fixed height)."height" - scale to full height of the container (requires the container element to have fixed height)."width" - scale to full width of the container.getElementById ( 'demo' ) ) ĭefaults to blank terminal or, when startAt is specified, to screen contentsĬontrols the player's fitting (sizing) behaviour inside its container element. Then add necessary includes to your HTML document and initialize the playerĪsciinemaPlayer. The HTML snippet below assumes they're in Only need and asciinema-player.css files.įirst, add, asciinema-player.cssand the. Use the standalone player bundle in your HTML pageĭownload latest version of the player bundle from downloading an existing recording from by appending.recording terminal session to a local file with asciinema rec demo.cast.It assumes you have obtained terminal session recording file by either: The following examples show how to use asciinema player on your own website, full support for 256 color palette and 24-bit true color (ISO-8613-3),.multiple color schemes for standard 16 colors,.idle time optimization to skip longer periods of inactivity,.automatic font scaling to fit into container element in most efficient way,.ultra smooth, timing-accurate playback,.ability to copy-paste terminal content - it's just a text after all!,.If you don't want to depend on and you prefer to host the playerĪnd the recordings yourself then read on, it's very simple. With most widely used terminal emulators like xterm, Gnome Terminal, iTerm etc. Williams' parser for ANSI-compatible video webm etc) and instead plays light-weightĪsciicast is a capture of terminal's raw output, which has to be interpretedĭuring the playback, so the player comes with its own interpreter based on Paul Unlike other video players asciinema player doesn't play Web player for terminal session recordings (as producedĪsciinema player is an open-source terminal session player written in See the version for the latest stable release here. We read each and every comment and we always reply.Note: This README applies to development branch. As we know our comment section is always open to everyone. For anything we always happy to help everyone on the comment section. We are trying to build a community for Linux and Cybersecurity. To join our KaliLinuxIn family, join our Telegram Group. Love our articles? Make sure to follow us on Twitter and GitHub, we post article updates there. Enjoy a lightweight, purely text-based approach to terminal recording on our Kali Linus system. Forget screen recording apps and blurry video. This is about record and share our terminal in a very easy way. We also can play our locally saved asciinema records (with *.cast file extension), by using following command: asciinema play filename.cast As we embedded a asciinema terminal record, please check below: If we want to put a recording in a blog post, project’s documentation or in a conference talk slides. We can also easily embedded an asciicast on any HTML page. Asciinema also supports oEmbed/Open Graph/Twitter Card protocols, displaying a nice thumbnail where possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |