diohsc-0.1.2: diohsc.1.md
% DIOHSC(1) Version $VERSION | diohsc
# NAME
diohsc - line-based gemini client
# SYNOPSIS
diohsc [OPTION]... [URI|PATH]
# DESCRIPTION
diohcs is a gemini client with the following features:
* Simple line-based command-response terminal user interface with ANSI colour.
* Terse but combinatorially expressive command language.
* Navigational aids: history, marks, queue.
* Facilities to invoke external commands and use per-scheme proxies.
* Responses streamed to pager or external command.
* Certificate checking with TOFU and/or explicitly trusted CAs.
* Support for TLS resuming, 0RTT, and client certificates.
* All configuration and certificates stored as user-manipulable files.
* Extensive help.
Please use the "help" and "commands" commands for information on the commands
diohsc understands.
# OPTIONS
-d, \-\-datadir *PATH*
: Directory for configuration and storage of information between sessions.
: Default: ~/.diohsc
-e, \-\-command *COMMAND*
: Execute diohsc command.
: "-e" and "-f" options will be processed in order of appearance,
: after any diohscrc file, and before processing any uri/path argument.
-f, \-\-file *PATH*
: Execute commands from file ("-" for stdin).
: "-e" and "-f" options will be processed in order of appearance,
: after any diohscrc file, and before processing any uri/path argument.
-i, \-\-interact
: Interactively read diohsc commands from stdin, and prompt for further input
: as appropriate.
: This is the default mode unless "-e" or "-f" is used.
-c, \-\-colour
: Use ANSI escape sequences for formatting.
: This is the default if stdout is a terminal.
-C, \-\-no-colour
: Do not output ANSI escape sequences.
: This is the default if stdout is not a terminal.
-g, \-\-ghost
: "Ghost mode". Do not write logs, input history, or marks to *datadir*, and
: don't write or update "known\_hosts" certificates. The "save" command will
: still write to the filesystem, as will the "identity" command if it is used to
: create a new named identity.
-r, \-\-restricted
: Disallow shell and filesystem access. This prevents all use of external
: commands, and reading or writing outside of *datadir*.
-v, \-\-version
: Show version information.
-h, \-\-help
: Show usage information.
# FILES
~/.diohsc
: Default *datadir*. The paths given below assume that this is used.
~/.diohsc/diohscrc
: Configuration file, consisting of diohsc commands to run at startup.
~/.diohsc/log
: Visited uris, one per line.
~/.diohsc/commandHistory
: Commands entered in interactive mode.
~/.diohsc/inputHistory
: Input entered for gemini queries.
~/.diohsc/known\_hosts/
: Contains Trust-On-First-Use trusted certificates of visited hosts.
~/.diohsc/trusted\_certs/
: Certificates will be trusted without warning and without being placed in
: known\_hosts if they are presented with a valid certificate chain from a
: Certificate Authority certificate found in this directory.
~/.diohsc/marks/
: Contains marks for use with the "'" target specifier. Each file contains a
: URI, optionally appended by [IDENT] where IDENT is the name of an identity.
~/.diohsc/identities/
: Contains client certificates and corresponding private RSA keys for named
: cryptographic identities, as produced by the "identify" command.
~/.diohsc/queue
: Contains URIs, one per line. On startup and before processing each command,
: the contents of this file is added to the queue and the file is deleted. On
: exit, any remaining queue items are appended to this file.
# ENVIRONMENT
BROWSER
: Default browser used by "browse" command without an argument.
PAGER
: Default pager used by "||" command without an argument.
# BUGS
Only ANSI escape sequences are supported.
# LICENCE
diohsc is free software, released under the terms of the GNU GPL v3 or later.
You should have obtained a copy of the licence as the file COPYING.
# AUTHORS
Martin Bays <mbays@sdf.org>