LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

console-tty

Terminal sessions in a browser developer-tools console

TLDR

Register the extension's native host
$ console-tty native-host install [extension-id]
copy
Approve a browser enrollment
$ console-tty pair [request-id]
copy
Start the background daemon
$ console-tty daemon start
copy
Show daemon status
$ console-tty daemon status
copy
Create a default config
$ console-tty config init
copy
Print the config path
$ console-tty config path
copy

SYNOPSIS

console-tty command [options]

DESCRIPTION

console-tty runs a local terminal and connects it to a browser extension so the session is used from the developer-tools console. The shell itself is a normal local shell. The extension is only the display and the keyboard.After the extension is loaded unpacked, native-host install writes the native-messaging manifest for the current user. daemon start keeps the session host running. In the page console, the extension's pair function prints a request id; pair approves it. A shell is then started from the page.The config file sets the terminal size, the shell, the working directory, and render limits. config init writes defaults. Existing files are never overwritten.

PARAMETERS

daemon start

Start the background daemon.
daemon stop
Stop the daemon and its shells.
daemon foreground
Run the daemon in the foreground.
daemon status
Show whether the daemon is running.
pair [request-id]
Approve a pending browser enrollment. The request id is the one the page prints.
client list
List paired client ids, not credentials.
client revoke id
Revoke a client and disconnect it.
config init
Create a config file with defaults. Does not overwrite an existing file. Prints the path.
config path
Print the config path. Does not create the file.
native-host install extension-id
Register this executable as the browser extension's local connection. --browser is chrome (the default), chromium, or edge.

CONFIGURATION

config path prints the file even when it does not exist yet. Settings cover columns, rows, scrollback, the shell program, and the starting directory. The shell defaults to the SHELL environment variable, or a basic POSIX shell.

CAVEATS

The browser extension and this binary are installed separately. Repeating native-host install is required when the extension id or the executable path changes. That command does not start the daemon and does not approve pairing. The tool is a bridge into a local shell: treat the extension id and the pairing step as access to that shell.

SEE ALSO

bash(1), tmux(1)

RESOURCES

Copied to clipboard
Kai