{"id":50410917,"url":"https://github.com/knu/tfil","last_synced_at":"2026-05-31T03:30:54.429Z","repository":{"id":356024507,"uuid":"1230437918","full_name":"knu/tfil","owner":"knu","description":"PTY proxy with configurable terminal output filters","archived":false,"fork":false,"pushed_at":"2026-05-06T09:38:54.000Z","size":45,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T10:39:24.998Z","etag":null,"topics":["cli","filter","ink","proxy","pty","rust","terminal","tui"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"knu"}},"created_at":"2026-05-06T02:03:43.000Z","updated_at":"2026-05-06T09:38:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/knu/tfil","commit_stats":null,"previous_names":["knu/tfil"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/knu/tfil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftfil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftfil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftfil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftfil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/tfil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Ftfil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33718446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","filter","ink","proxy","pty","rust","terminal","tui"],"created_at":"2026-05-31T03:30:53.849Z","updated_at":"2026-05-31T03:30:54.423Z","avatar_url":"https://github.com/knu.png","language":"Rust","funding_links":["https://github.com/sponsors/knu"],"categories":[],"sub_categories":[],"readme":"# tfil\n\nA PTY proxy with configurable terminal output filters.\n\n`tfil` runs a command inside a pseudo-terminal and rewrites its output stream on the way back to your terminal.  Use it to clean up specific escape-sequence quirks emitted by interactive TUIs without modifying the program itself.\n\n## Installation\n\n```console\n% cargo install tfil --locked\n```\n\nOr install a prebuilt binary from GitHub Releases:\n\n```console\n% curl --proto '=https' --tlsv1.2 -LsSf https://github.com/knu/tfil/releases/latest/download/tfil-installer.sh | sh\n```\n\nIf you use `cargo-binstall`:\n\n```console\n% cargo binstall tfil\n```\n\n## Usage\n\n```console\n% tfil [OPTIONS] \u003cCOMMAND\u003e [ARGS]...\n```\n\nWith no filter flags, `tfil` is a transparent PTY proxy.  Each flag enables one filter on the output stream.  Hyphenated arguments after `\u003cCOMMAND\u003e` are passed through to the child without needing `--`:\n\n```console\n% tfil --strip-ink-fake-cursor claude --resume\n```\n\n### Filters\n\n- `--strip-cursor-shape` — Drop DECSCUSR (`CSI Pn SP q`) so child programs cannot change the terminal's cursor shape.\n- `--strip-ink-fake-cursor` — Strip [Ink](https://github.com/vadimdemedes/ink)'s fake-cursor sequences (`\\x1b[7m{grapheme}\\x1b[27m` and friends), and suppress `\\x1b[?25l` so the terminal's native cursor shows through.  Useful with Ink-based TUIs such as Claude Code, Gemini CLI, or ccmanager.\n- `--strip-osc-titles` — Drop OSC 0/1/2 sequences (icon name and window title).  Other OSCs (4 = palette, 8 = hyperlink, 52 = clipboard, ...) are passed through.  Both ST (`ESC \\`) and BEL terminators are recognized.\n\n## Composition\n\nWhen stacking with other PTY wrappers (such as [claude-chill](https://github.com/davidbeesley/claude-chill)), put `tfil` on the outside so its filters see the original byte stream before any re-rendering layer normalizes it:\n\n```console\n% tfil --strip-ink-fake-cursor claude-chill claude\n```\n\n## Author\n\nCopyright (c) 2026 Akinori Musha.\n\nLicensed under the MIT license.  See `LICENSE` for details.\n\nVisit the [GitHub Repository](https://github.com/knu/tfil) for the latest information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Ftfil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Ftfil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Ftfil/lists"}