CHA(1)
πΈ NAME β cha, the Chawan text-mode browser, and yes this is CHA(1) πΈ
Okay bestie, meet cha β the Chawan text-mode browser. Sheβs the main character of this manual page, and this is CHA(1) serving full βI read the docs and slayedβ energy. π
β¨
π¦ SYNOPSIS π¦
cha [options] [URL(s) or file(s)...]
π DESCRIPTION π
Chawan is a text-mode browser, no cap. You can use it as a pager, or as a web/(S)FTP/gopher/gemini/file browser. It understands HTML and CSS, and when enabled by the user, it can also execute JavaScript and display images β on terminals supporting Sixel or the Kitty image protocol. ππ¦
Chawan can also be used as a general text-based document viewer as described in cha-mailcap(5), or as a hyperlinked man page viewer using mancha(1). Itβs giving versatile icon behavior. π
This page is literally all about the invocation of Chawan. For a list of default keybindings, type cha about:chawan. For a detailed description of the configuration format, see cha-config(5). iykyk. β¨
π ARGUMENTS π
On invocation, Chawan attempts to open all URL/file arguments supplied. If no URLs could successfully be opened, Chawan exits automatically. Very βif nobody shows up to the party, Iβm leavingβ of her. π
Chawan may also be started without specifying a file, if a file is provided through a pipe. In this case, you can specify the content type using the -T switch. Pipe her in, bestie. π«Ά
β¨ OPTIONS β¨
All command line options have short forms (e.g. -d) and long forms (e.g. --dump). Two names, one iconic option. π
Long forms must be introduced with two dashes; when only a single dash is provided, each letter is parsed as a separate short form. So donβt be out here giving long options one lonely dash β she will read every letter as its own short form. π
In short form, it is also valid to provide values to arguments without a subsequent space. For example, -obuffer.images=true is valid. Sneaky little no-space slay. π
-c,--css stylesheetβ Temporarily modify the user stylesheet. If a user stylesheet is already being used, the stylesheet given is appended to that. Itβs giving βquick outfit change, but make it CSS.β π-d,--dumpβ Start in headless mode, and sequentially print the opened files to stdout. This option is implicitly enabled if stdout is not a tty (e.g. when pipingchaoutput). Headless era activated. π-h,--helpβ Print a short version of this page, then exit. A lil appetizer before the full meal. π-o,--opt configβ Pass temporary configuration options. This accepts the configuration format described incha-config(5), so the passed string must be valid TOML.
To ease specifying string parameters, unrecognized bare keywords are converted to strings. So this works: --opt display.color-mode=eight-bit.
Symbols and words starting with a number must still be quoted, i.e. you have to quote them twice to bypass shell quoting.
For options whose name does not appear in any other section, skipping the section name is valid. For instance, to enable buffer.images, you can type -o images=true.
However, this may stop working in future versions if images is added to another section, so it shouldnβt be relied upon in scripts. > Heads up, bestie: cute shortcut, but not a forever promise for your scripts. π
-r,--run script/fileβ Execute the string provided as a JS script, or execute the supplied JS file. If the file ends in.mjs, it is executed as an ES module. JavaScript girlies rise. π₯-v,--versionβ Print information about the browserβs version, then exit. Version check, then bye. π-C,--config fileβ Override the default configuration search path. Both absolute and relative paths are allowed. Path freedom, periodt. π-I,--input-charset charsetβ Override the character set of all input files. Useful when Chawan is incorrectly recognizing the input character set.
(If this happens often, consider changing the default input charset recognition list encoding.document-charset in the configuration.) Fix it at the source, icon. β¨
-M,--monochromeβ Force monochrome output. Formatting (bold/italic/etc.) is not affected. This is a shortcut for-o display.color-mode=monochrome. Monochrome but make it still formatted. π€-O,--output-charset charsetβ Override the output character set. This is a shortcut for-o encoding.display-charset=charset. Output charset, but make it a shortcut. π-T,--type content-typeβ Override the content type of all input files. Useful when the content type cannot be guessed from the file extension, or when reading a non-plaintext file from stdin. When the file extension is not giving, you gotta tell her yourself. π«Ά-V,--visualβ When no files/URLs are passed, open the page specified instart.visual-homeinstead of printing a help screen. No arguments? No problem β visual home page time. πΈ--β Interpret all following arguments as files. For example, you can open a file named-ousingcha -- -o. The βstop reading these as optionsβ barrier has entered the chat. π
π ENVIRONMENT π
Certain environment variables are read and used by Chawan. Sheβs nosy in the most useful way. π
TMPDIRβ When set, the default configuration stores temporary files inside this directory (and/tmp/cha-tmp-userotherwise.) Temporary file realness. πHTTP_HOME,WWW_HOMEβ When set, Chawan starts in visual mode by default and opens the page specified by one of these variables.HTTP_HOMEtakes precedence overWWW_HOME. Two home variables walk in;HTTP_HOMEwins. πCHA_DIRβ When set, it switches the configuration directory to the path specified. New config directory, who dis. β¨COLORTERMβ When set to24bitortruecolor, and thedisplay.color-modeconfiguration option is set toauto, Chawan sets the color mode to true color. Color mode glow-up unlocked. πTERMβ Used by Chawan to adjust to terminal-specific quirks. When not set, defaults toxterm. Terminal quirks get handled, bestie. πVISUAL,EDITORβ Used to determine the editor to use when theexternal.editorconfiguration option is not set. Editor selection fallback squad. π«ΆLINES,COLUMNSβ Used as fallback values when window size detection fails. When the terminal wonβt tell her the size, these step in. π
π¦ SEE ALSO π¦
mancha(1)cha-config(5)cha-mailcap(5)cha-mime.types(5)cha-cgi(5)cha-protocols(7)cha-image(7)cha-css(7)cha-troubleshooting(7)cha-terminal(7)
Cute sign-off from the CHA(1) footer corner: General Commands Manual vibes, with CHA(1) as the footer and no separate source/version/date line listed beyond that. We close the page exactly as the footer intended, bestie. πβ¨π
π¦ where this page comes from
- arch rolling: chawan 0.5.0-1 Β· Unlicense
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms