footclient(1) | General Commands Manual | footclient(1) |
NAME
footclient - start new terminals in a foot server
SYNOPSIS
footclient [OPTIONS]
footclient [OPTIONS] <command> [COMMAND
OPTIONS]
All trailing (non-option) arguments are treated as a command, and its arguments, to execute (instead of the default shell).
DESCRIPTION
footclient is used together with foot(1) in --server mode.
Running it without arguments will open a new terminal window (hosted in the foot server), with your default shell. The exit code will be that of the terminal. I.e footclient does not exit until the terminal has terminated.
OPTIONS
-t,--term=TERM
-T,--title=TITLE
-a,--app-id=ID
-w,--window-size-pixels=WIDTHxHEIGHT
-W,--window-size-chars=WIDTHxHEIGHT
-m,--maximized
-F,--fullscreen
-L,--login-shell
-D,--working-directory=DIR
-s,--server-socket=PATH
-H,--hold
-N,--no-wait
-o,--override=[SECTION.]KEY=VALUE
-E,--client-environment
Environment variables listed in the Variables set in the child process section will be overwritten by the foot server. For example, the new terminal will use TERM from the configuration, not footclient's environment.
-d,--log-level={info,warning,error,none}
-l,--log-colorize=[{never,always,auto}]
-v,--version
-e
EXIT STATUS
Footclient will exit with code 220 if there is a failure in footclient itself (for example, the server socket does not exist).
If -N,--no-wait is used, footclient exits with code 0 as soon as the foot server has been instructed to open a new window.
If not, footclient may also exit with code 230. This indicates a failure in the foot server.
In all other cases the exit code is that of the client application (i.e. the shell).
TERMINFO
Client applications use the terminfo identifier specified by the environment variable TERM (set by foot) to determine terminal capabilities.
Foot has two terminfo definitions: foot and foot-direct, with foot being the default.
The difference between the two is in the number of colors they describe; foot describes 256 colors and foot-direct 16.7 million colors (24-bit truecolor).
Note that using the foot terminfo does not limit the number of usable colors to 256; applications can still use 24-bit RGB colors. In fact, most applications work best with foot (including 24-bit colors)). Using *-direct terminfo entries has been known to crash some ncurses applications even.
There are however applications that need a *-direct terminfo entry for 24-bit support. Emacs is one such example.
While using either foot or foot-direct is strongly recommended, it is possible to use e.g. xterm-256color as well. This can be useful when remoting to a system where foot's terminfo entries cannot easily be installed.
Note that terminfo entries can be installed in the user's home directory. I.e. if you do not have root access, or if there is no distro package for foot's terminfo entries, you can install foot's terminfo entries manually, by copying foot and foot-direct to ~/.terminfo/f/.
ENVIRONMENT
Variables used by footclient
XDG_RUNTIME_DIR
WAYLAND_DISPLAY
If the socket at default PATH does not exist, footclient will fallback to the less specific path, with the following priority: $XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock, $XDG_RUNTIME_DIR/foot.sock, /tmp/foot.sock.
Variables set in the child process
TERM
COLORTERM
PWD
SHELL
In addition to the variables listed above, custom environment variables may be defined in foot.ini(5).
Variables *unset* in the child process
TERM_PROGRAM TERM_PROGRAM_VERSION
In addition to the variables listed above, custom environment variables to unset may be defined in foot.ini(5).
SEE ALSO
2024-10-23 |