{"id":13469286,"url":"https://github.com/nbedos/termtosvg","last_synced_at":"2025-10-05T17:31:51.632Z","repository":{"id":44844954,"uuid":"136727471","full_name":"nbedos/termtosvg","owner":"nbedos","description":"Record terminal sessions as SVG animations","archived":true,"fork":false,"pushed_at":"2020-06-16T11:01:41.000Z","size":1400,"stargazers_count":9689,"open_issues_count":12,"forks_count":437,"subscribers_count":132,"default_branch":"develop","last_synced_at":"2024-04-14T16:12:48.504Z","etag":null,"topics":["animation","cli","recorder","recording","shell","svg","svg-animations","terminal"],"latest_commit_sha":null,"homepage":"https://nbedos.github.io/termtosvg/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbedos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-09T13:52:09.000Z","updated_at":"2024-04-13T16:39:15.000Z","dependencies_parsed_at":"2022-07-19T22:02:05.320Z","dependency_job_id":null,"html_url":"https://github.com/nbedos/termtosvg","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbedos%2Ftermtosvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbedos%2Ftermtosvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbedos%2Ftermtosvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbedos%2Ftermtosvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbedos","download_url":"https://codeload.github.com/nbedos/termtosvg/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235425018,"owners_count":18988334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","cli","recorder","recording","shell","svg","svg-animations","terminal"],"created_at":"2024-07-31T15:01:32.020Z","updated_at":"2025-10-05T17:31:46.287Z","avatar_url":"https://github.com/nbedos.png","language":"Python","funding_links":[],"categories":["Python","编程","📦 Legacy \u0026 Inactive Projects","Python (1887)","cli","Uncategorized","🐧 Linux","\u003ca name=\"screen-recorder\"\u003e\u003c/a\u003eScreen recorder","工具","Tools","Screenshot \u0026 Video Recording","Utilities"],"sub_categories":["命令行工具","Uncategorized","simulations","调试","GIF Recording"],"readme":"**Note: As of June 2020 I do not have time to maintain termtosvg anymore and this repository is now read-only.**\n\n# termtosvg\ntermtosvg is a Unix terminal recorder written in Python that renders your command\nline sessions as standalone SVG animations.\n\n![Example](./docs/examples/awesome_window_frame_powershell.svg)\n\n* [Gallery of examples](https://nbedos.github.io/termtosvg/pages/examples.html)\n* [Gallery of templates](https://nbedos.github.io/termtosvg/pages/templates.html)\n\n## Features\n* Produce lightweight and clean looking animations or still frames embeddable on a project page\n* Custom color themes, terminal UI and animation controls via user-defined [SVG templates](man/termtosvg-templates.md)\n* Rendering of recordings in asciicast format made with asciinema\n    \n## Installation\ntermtosvg is compatible with Linux, macOS and BSD OSes, requires Python \u003e= 3.5 and can be installed as follows using pip:\n```shell\n# Create virtualenv named '.venv'\npython3 -m venv .venv\n# Activate virtualenv\nsource .venv/bin/activate\npip3 install termtosvg\n```\nThen run termtosvg by calling either `termtosvg` or `python3 -m termtosvg`.\n\nVarious independently maintained, OS specific packages have been made available by the community:\n\n| OS       | Repository  | Installation command  |\n|----------|-------------|---|\n| Archlinux  | [Arch](https://www.archlinux.org/packages/community/any/termtosvg/)  |`pacman -S termtosvg`   |\n| FreeBSD | [ports](https://www.freshports.org/graphics/py-termtosvg) | |\n| Gentoo | [media-gfx/termtosvg](https://packages.gentoo.org/packages/media-gfx/termtosvg) | `emerge media-gfx/termtosvg`|\n| macOS  | [Homebrew](https://formulae.brew.sh/formula/termtosvg)  |`brew install termtosvg`   |\n| OpenBSD  | [ports](https://github.com/openbsd/ports/tree/master/graphics/termtosvg)  |   |\n| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/termtosvg/) | |\n\n\n## Basic usage\nStart recording with:\n\n```\n$ termtosvg\nRecording started, enter \"exit\" command or Control-D to end\n```\n\nYou are now in a subshell where you can type your commands as usual.\nOnce you are done, exit the shell to end the recording:\n\n```\n$ exit\nRecording ended, file is /tmp/termtosvg_exp5nsr4.svg\n```\nThen, use your favorite web browser to play the animation:\n```\n$ firefox /tmp/termtosvg_exp5nsr4.svg\n```\n\nFinally, embedding the animation in e.g. a [README.md](README.md) file on GitHub can\nbe achieved with a relative link to the animation:\n```markdown\n![Example](./docs/examples/awesome_window_frame.svg)\n```\n\nSee the [manual page](man/termtosvg.md) for more details.\n\n## Dependencies\ntermtosvg uses:\n* [pyte](https://github.com/selectel/pyte) to render the terminal screen\n* [lxml](https://github.com/lxml/lxml) to work with SVG data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbedos%2Ftermtosvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbedos%2Ftermtosvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbedos%2Ftermtosvg/lists"}