hn.today

Show HN: Console.tty – terminal emulator in browser console

github.com9 points0 comments
Screenshot of Show HN: Console.tty – terminal emulator in browser console

Console.tty is a cross-platform terminal emulator that runs inside a web browser’s developer console, letting users open a shell while viewing any website. It combines a browser extension with a Rust command-line executable that manages terminal sessions, and supports Windows, macOS, and Linux. Its purpose is to make a real local terminal available in the browser console rather than merely imitate terminal output. Supported shells include bash, zsh, fish, nu, xonsh, sh, pwsh, and PowerShell; Windows also supports cmd.

Setup requires installing the CLI and extension, enabling the unpacked extension in Chrome or Edge, and registering its extension ID with the CLI’s native-host installer. To use it, the user creates a session ID in the browser, pairs the CLI with that ID, and calls console.tty with an optional shell name. A keyboard shortcut, Control-Shift-9, activates terminal input detection on the webpage. Configuration options cover terminal size and scrollback, default shell and working directory, rendering frame rate and responsive resizing, input hints, and limits on concurrent sessions and startup requests. The project provides installation scripts for macOS/Linux and Windows and is MIT-licensed.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.