Linux command
browsh 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start browsh
browsh
Open a specific
browsh [https://example.com]
Run with a visible
browsh --firefox.with-gui
Use a custom
browsh --firefox.path [/path/to/firefox]
Run in HTTP server
browsh --http-server-mode
Connect to an already running
browsh --firefox.use-existing
说明
browsh is a fully modern text-based browser that renders to TTY terminals. It uses a headless Mozilla Firefox to fetch and render web pages, then converts the output into ANSI or Unicode characters for terminal display. The browser supports HTML5, CSS3, JavaScript, images, WebGL content, and video playback within the terminal.
参数
- --firefox.path _path_
- Path to Firefox executable. Default is "firefox".
- --firefox.use-existing
- Connect to an already running Firefox instance instead of launching a new one. Firefox must have been started with the --marionette flag.
- --firefox.with-gui
- Run Firefox with a visible GUI window instead of headless mode.
- --http-server-mode
- Run as an HTTP server for browser access.
- --startup-url _url_
- URL to open on startup. Default is "https://google.com".
- --time-limit _seconds_
- Kill browsh after the specified number of seconds.
- --debug
- Enable debug logging to ./debug.log.
FAQ
What is the browsh command used for?
browsh is a fully modern text-based browser that renders to TTY terminals. It uses a headless Mozilla Firefox to fetch and render web pages, then converts the output into ANSI or Unicode characters for terminal display. The browser supports HTML5, CSS3, JavaScript, images, WebGL content, and video playback within the terminal.
How do I run a basic browsh example?
Run `browsh` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --firefox.path _path_ do in browsh?
Path to Firefox executable. Default is "firefox".